Networking Forums

Networking Forums > Computer Networking > Linux Networking > samba permissions on networked application

Reply
Thread Tools Display Modes

samba permissions on networked application

 
 
Ken
Guest
Posts: n/a

 
      02-01-2004, 11:05 PM
I think 'umask' might be helpful to you... try a man umask and read the
description, you can use it to set the default permissions etc. on new
files..

cheers,

--
Ken
http://www.BoredCanadian.com/

"Eric Somebody" <(E-Mail Removed)> wrote in message
news:WcfTb.1060$_(E-Mail Removed)...
> Hi,
>
> Could anyone tell me how I could set up my samba server so that some files
> that are created dynamically are created with specific permissions that I
> set - not witht hose of the user?
>
> My problem is this. I have an application that has to open and modify

files
> in four different folders on the linux machine.
> There are three users who each have their own samba file and password.
> I've set the samba username and password to be the same as the users

Windows
> un and pwd.
> Then, I created a link in each of the users home location to the 4 folders
> they need access to.
> However, whenever a file is created by one user it is then only available

as
> read only to the other two - I would like it to be 777.
>
> also, I seem to have a path problem with the links - I am navigating the
> path with a VB application. can I include the link in my path or do i

have
> to use the original 'long way around'?
>
>
> Thanks.
>
>



 
Reply With Quote
 
 
 
 
Eric Somebody
Guest
Posts: n/a

 
      02-02-2004, 12:30 AM
Hi,

Could anyone tell me how I could set up my samba server so that some files
that are created dynamically are created with specific permissions that I
set - not witht hose of the user?

My problem is this. I have an application that has to open and modify files
in four different folders on the linux machine.
There are three users who each have their own samba file and password.
I've set the samba username and password to be the same as the users Windows
un and pwd.
Then, I created a link in each of the users home location to the 4 folders
they need access to.
However, whenever a file is created by one user it is then only available as
read only to the other two - I would like it to be 777.

also, I seem to have a path problem with the links - I am navigating the
path with a VB application. can I include the link in my path or do i have
to use the original 'long way around'?


Thanks.


 
Reply With Quote
 
jack
Guest
Posts: n/a

 
      02-02-2004, 10:03 AM
Eric Somebody wrote:

> Could anyone tell me how I could set up my samba server so that some files
> that are created dynamically are created with specific permissions that I
> set - not witht hose of the user?


See the "force group" option for smb.conf. - I have one office with
three win clients and one linux server, and four people need to use
the PCs, all for different tasks.

So, I set up (1) one home directory each, (2) one "public" dir that
all of them have access to and (3) two directories with limited
access. Then, I created the users and gave them different groups
according to their needs, and put all of them into one additional
group that owns that shared directory that all of them may use.
For that share, I set "force group = $COMMON_GROUP" and "create
mask = 0660", and "directory mask = 0770".


> My problem is this. I have an application that has to open and modify files
> in four different folders on the linux machine.
> There are three users who each have their own samba file and password.
> I've set the samba username and password to be the same as the users Windows
> un and pwd.
> Then, I created a link in each of the users home location to the 4 folders
> they need access to.
> However, whenever a file is created by one user it is then only available as
> read only to the other two - I would like it to be 777.


See above, "create mask". Then, You needn't give world access on those
files.

> also, I seem to have a path problem with the links - I am navigating the
> path with a VB application. can I include the link in my path or do i have
> to use the original 'long way around'?


Personally, I don't think that using links on shares is a good idea in
the first place. Anyway, if You want to use them, You should refer to
the samba documentation about how to allow for that and how to set the
required permissions.

If You only maintain those links to overcome that problem above, You
will find that they are of no use once You have a proper config.

Last, why not connecting each share as separate drives under Win? -
Again, in that office I was talking about, users have their homes
(and "My Documents", plus roaming profiles) under "H:\", then all
of them have one drive "I:\" which is the "public" directory, only
two users can access one restricted directory "J:\" which the other
two users cannot even see, and lastly one "K:\", that all but one
users may access. - The drives get connected when the users log on,
vi that logon script mechanism.


Hope this helps, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba shares keep reverting permissions and ownership Mark Adams Linux Networking 0 05-09-2006 10:24 PM
how can I assign permissions for an application Joe Windows Networking 2 02-08-2005 12:19 AM
Insufficient Permissions to Spool directory with Samba printer Ringo Langly Linux Networking 5 11-12-2004 06:37 PM
Networked Application Slow with SBS2003 Robert Wagner Windows Networking 2 10-06-2004 06:51 AM
Permissions on a windows drive through SAMBA N.K. Linux Networking 8 09-05-2003 06:28 PM



1 2 3 4 5 6 7 8 9 10 11