Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-21-2005, 05:07 AM   #1
Registered: Feb 2003
Location: Melbourne, VIC, Australia
Distribution: Ubuntu 6.06
Posts: 101

Rep: Reputation: 15
SuSE 9.2, Samba, wrong GID/UID after mount

Hey guys,

i have the following command:
mount -t smbfs -o username=user,password=password,uid=1000,gid=100,dmask=0,fmask=0rw // /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
// /home/user/network smbfs rw,credentials=/home/user/.credentials 0 0
// /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.

Last edited by dickohead; 04-21-2005 at 05:34 AM.
Old 04-21-2005, 05:33 AM   #2
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32

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 ?
Old 04-21-2005, 05:38 AM   #3
Registered: Feb 2003
Location: Melbourne, VIC, Australia
Distribution: Ubuntu 6.06
Posts: 101

Original Poster
Rep: Reputation: 15
the permissions in samba were set to 705 by setting:
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!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is uid and gid rmanocha Linux - Software 9 08-19-2008 12:03 AM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 12:39 PM
How can I change a user's uid and gid? homesp Debian 2 05-31-2005 03:39 PM
Samba uid/gid mapping (Server to client) problems mcle Linux - Networking 2 01-07-2005 09:16 AM
changing uid, gid zeke1955 Linux - General 4 01-10-2004 12:53 AM

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration