This is a discussion on [Samba] Re: using samba as nfs server replacement? within the Samba forums, part of the Networking and Network Related category; Hi again, I updated Samba on both client and server to 3.0.28a. Client is openSuSE 10.2. Server ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi again,
I updated Samba on both client and server to 3.0.28a. Client is openSuSE 10.2. Server is Debian Lenny. I noticed that newly created file's ownership will be changed to username that is used when mounting CIFS volume (under -o username=xxx,password=xxx) and the permission will be changed to what specified under samba configuration. Here's my config [global] workgroup = WORKGROUP server string = Test Samba Server passdb backend = tdbsam unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192 load printers = No dns proxy = No ldap ssl = no [testvolume1] comment = CIFS Mount path = /mnt/disk1 valid users = @users admin users = @root write list = @users read only = No hosts allow = 192.168.0.0/255.255.255.0 There's a lot of different users who will log into the workstation, all of them are not superuser, therefore they can't run mount command and specify their samba username/password. I tried to create a Samba account for each machine, say machine1 and put the username/password in /etc/fstab. Now for every file created by users logged into that machine, the ownership is changed to machine1 automatically. Is there any way to solve this problem? Thank you very much! Pakorn Michael Heydon wrote: > Pakorn Chutinimitkul wrote: >> Hi, >> >> <snip> >> 1. How to make Samba stores the ownership of the file? Afaik Samba >> changes ownership of the file to the connected user. Our storage relies >> on uid/gid a lot. >> >> 2. Can Samba obey umask settings? Apart from changing values in >> create mask ? >> > Recent versions of samba will automatically figure out that they are > talking to a unix client (as long as the client is recent as well) and > enable the CIFS unix extensions. Permissions, ownership, symlinks, etc > should "Just Work(tm)". > >> If anyone could point me to any resource, that would be greatly >> appreciated. >> >> Thank you! >> Pakorn >> > > > *Michael Heydon - IT Administratorr * > michaelh@jaswin.com.au <mailto:michaelh@jaswin.com.au> > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba |