***Note****
What follows is the suggestion I gave to a fellow member concerning
samba. He was having a problem similar to yours (write access, etc).
I believe the only difference was that he was mounting the samba share using a
command in inittab. I hope it helps.
***end note***
The mount command (which is run as root during startup script
execution)
will assign the group id and user id on all files of a mounted volume to the user running the command. Since you are doing it at startup, all files gid and uid are set to root. Try this: mount -t vfat -o gid=[gid of samba user(s)] -o uid=[uid of samba user(s)] /dev/hdb1 /mnt/data1 where: gid=group id uid=user id get the gid and uid from /etc/passwd setting the 'auto' flag in fstab will mount any volume automatically at startup rather than generating a seprate script file to do it. also, the uid and gid of the mountpoint dir (/mnt/data1) will also be set to the gid and uid specified in the mount command above. For this to work, the samba user must be defined in both the/etc/passwd and /etc/smbpasswd files. /etc/passwd for setting the uid and gid; /etc/smbpasswd for access to the share defined in smb.conf. Hope this helps....(sharply scold me if it doesn't) I learned this the hard way when I tried to utilize my zip drive on the linux box from my windoze box and couldn't write any files to it. Aaron Cronkright aaron@cronkright.com ----- Original Message -----
From: "Christopher Rector" <crector@siumed.edu>
To: "Central Illinois Linux Users Group" <luci-discuss@luci.org>
Sent: Monday, January 28, 2002 9:08 AM
Subject: Samba persmissions > > I'm setting up a test box with Redhat 7.1 and Samba 2.2.2 and want to > create a common share folder I want everyone to have both read and write > access to anything in the folder. > > What I'm getting is a folder that allows anyone to read a file, but only > the owner/creator can modify the file. On my test set up I have set the > linux permissions on the folder to 777 (testing only), the permissions > on the smb.conf/NT side are create mask = 0644 > directory mask = 0755 / on the NT side it's set for change permissions. > > Can anyone help me get this set correctly? I'm a relative newbie on > Linux and am currently trying to get away from the dependence on > Micro$oft. > > > > -- > Christopher Rector, MCSE > Computer Information Specialist > Southern Illinois University > School of Medicine > Department of Ob/Gyn > 217-545-9182 Thanks,
Aaron Cronkright
aaron@cronkright.com |