Can't get RW permission on a mounted samba share
I have mounted a samba share form my WinXP machine on linux in my fstab, but i cannot get RW permission as a normal user. Logging as root works fine :confused: .
Here is the line in my fstab: //server/share /mnt/share smbfs auto,rw,username=guest,password= 0 0 I have also tried adding umask=000 but doesn't change anything :( Note: I'm using Redhat9 |
try adding uid=(your user id),gid=(your group id)
you can find them in your passwd file.. |
gid=xxx,uid=xxx, setting directory permissions worked
I've done a lot of reading on this over the past day to get this working. It seems that there are two common problems keeping this from working for most people.
1.) directory permissions: The user you want to have rw access to your smaba mount needs to have rw access to your mount point. First, unmount the smb share. You cannot change the permissions of a mount point while a share is mounted to it. You can either change the directory permissions by opening up the mount point to everyone Code:
chmod 777 /mnt/yourMountHere Code:
chgrp yourUser /mnt/yourMountHere Code:
chmod g+rwx /mnt/yourMountHere 2.) uid and gid settings: Now you need to be sure that your fstab has the correct settings to allow that user to read and write to the mounted dir. Here's my fstab entry Code:
//serversus/Albums /mnt/albums smbfs username=administrator,password=xxxxxxxxxx,uid=500,gid=500 0 0 Code:
id yourUsername |
as root you need to:
#chmod u+s /usr/bin/smbmnt #chmod u+s /usr/bin/smbumount then as the USER create your folder you want to mount your XP share to. Now you can mount your WindowsXP share like this: $smbmount //WindowsXPbox/shared_folder /the/directory/you/created -o username=(your windows username) It will then prompt you for your password - and again - it's your windows username password. |
do not chmod u+s smbmount.
|
I can not do it using cifs file system
I followed the steps but still can not write to the mounted windows shared folder. I used cifs when mounting.
|
Wow - I haven't thought about this problem in a while!
This turned out to be a combination of a few issues. Try this first: http://www.glitchnyc.com/static/tech...nnelFix.phblox And if that fails, give this a shot: http://www.glitchnyc.com/static/tech...ication.phblox Hope that helps you! |
All times are GMT -5. The time now is 03:37 AM. |