Click to See Complete Forum and Search --> : Access to Shares Using Samba for Non-Root User
Coral Sea
04-23-2000, 07:28 PM
I've tried to configure the smb.conf file to allow non-root users to write to shares on a Windows 98/2000 PC. The following didn't work:
path = /dir1/dir2
writeable = yes
valid users = user1 root
admin users = user1 root
I'm obviously missing something but can't spot it. Would appreciate any advice you Samba gurus might be able to offer. Thx. http://www.linuxnewbie.org/ubb/confused.gif
------------------
Visit my Web site: http://members.home.net/2826651556/
Craig McPherson
04-23-2000, 08:29 PM
ALSO, the files and directories themselves must have permissions set so that the user can access to them. For example, if the user doesn't have write access to those files and directories, they won't have access to them through SAMBA (well, you CAN set it up that way but it's a giant security risk). Change the ownership and permissions on the files and directories and try again.
Coral Sea
04-24-2000, 12:10 AM
I have to unmount the share to change the ownership and permissions. No problem there. However, when I remount the share as su (using smbmount), the ownership reverts back to root. What's the trick to get around that? Thx.
------------------
Visit my Web site: http://members.home.net/2826651556/
Coral Sea
11-19-2000, 11:53 AM
The following works to allow read-write capability for non-root users:
smbmount //pc_windows/c /win2k -o username=name,password=passwd,uid=name,gid=name
where pc_windows is the Windows 2000 PC name, name is your Linux non-root user name, and passwd is the password for the user that you're logging in as on the Windows 2000 PC.
------------------
Visit my Web site: http://scubadoo.address.com/
knute
11-19-2000, 12:01 PM
The way that I have mine set up (2 machines on a lan (mine is linux, wifes is 98)) is that I have a user and group set up for samba, then just added both of us as members of that group...
The group for samba has the write permissions on it, so I am able to access the samba directory on my machine, and my wife can access it through network neighborhood from her machine...
------------------
Knute
Email: knuteh@yahoo.com
ICQ: 53979509
GAIM: knutehall
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.