[Samba] smbmount of Windows 2000/XP disregards uid option
bertil at Askelid.com
Sat Mar 29 01:00:48 GMT 2003
You have to run smbmount as root, which means that the Windows
harddrives are mounted with all files owned by root. Unless you have
a "umask 0", another user, beside root, cannot write access the
According to the smbmount man page, a "-o uid=bertil gid=staff"
should mount the file system with bertil:staff as owner. And I would
have write access. And only me, no one else on my system.
The "umask 0" trick is dangerous in that you let everybody change the
mounted file system.
Thanks for helping me out!
With Kindest Regards
smbmount - mount an smbfs filesystem
[ ... ]
[ ... ]
sets the uid that will own all files on the mounted filesystem. It may be
specified as either a username or a numeric uid.
sets the gid that will own all files on the mounted filesystem. It may be
specified as either a groupname or a numeric gid.
[ ... ]
<> Subject: RE: [Samba] smbmount of Windows 2000/XP disregards uid option
<> Date: Fri, 28 Mar 2003 16:45:55 -0500
<> From: "Barry, Christopher" <cbarry at infiniconsys.com>
<> What are you trying to accomplish? Can you explain what you are trying to do exactly?
<> Christopher Barry
<> Manager of Information Systems
<> InfiniCon Systems
<> -----Original Message-----
<> From: Bertil Askelid [mailto:Bertil at Askelid.com]
<> Sent: Thursday, March 27, 2003 5:59 PM
<> To: samba at lists.samba.org
<> Subject: [Samba] smbmount of Windows 2000/XP disregards uid option
<> I'm mounting Windows 2000/XP disk drives from Linux RedHat 7.3 using
<> smbmount. No problems, the disks are mounted.
<> However, it disregards the "uid" and "gid" options and leaves the
<> smbfs owned by "root" giving the "uid" user read-only access and not
<> read-write as expected. Adding the "rw" doesn't help either.
<> What am I doing wrong?
<> Bertil Askelid
<> Anaheim Hills, California
<> To unsubscribe from this list go to the following URL and read the
<> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba