LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SuSE 9.2, Samba, wrong GID/UID after mount (https://www.linuxquestions.org/questions/linux-networking-3/suse-9-2-samba-wrong-gid-uid-after-mount-315617/)

dickohead 04-21-2005 04:07 AM

SuSE 9.2, Samba, wrong GID/UID after mount
 
Hey guys,

i have the following command:
Code:

mount -t smbfs -o username=user,password=password,uid=1000,gid=100,dmask=0,fmask=0rw //192.168.1.111/user /home/user/network/
yet when i open up the /home/user/network folder, i cannot access any of the folders nor write anywhere, because the UID and GID are still set to what it is on the server..... how can i mount a samba directory so that one user has full permissions to it, regardless of it's permissions on the server? and how do i set it up in fstab?

i have tried adding the following to /etc/fstab, yet it does nothing at all
Code:

//192.168.1.111/user /home/user/network smbfs rw,credentials=/home/user/.credentials 0 0
and
Code:

//192.168.1.111/user /home/user/network smbfs rw,username=user,password=password 0 0
in all of the above user and password will of course be substituted for the actual name and password....

any help would be great on this!

I have also tried NFS to help solve my linux-linux problems, yet it never allowed me to share on a per user basis.

fr_laz 04-21-2005 04:33 AM

Hi,

you're right about NFS, it only uses UID/GID, so that they must be the same on all your machines.
as for samba, what you use should work fine... did you check the file's permission in smb.conf ?

dickohead 04-21-2005 04:38 AM

the permissions in samba were set to 705 by setting:
Code:

create mask = 0705
directory mask = 0705
force directory mode = 0705
force directory security mode = 705
force security mode = 705

but i have now scrapped that, and it still uses the serves UID and GID.... so confused!


All times are GMT -5. The time now is 06:07 PM.