smb mount options

volvoguy volvoguy at gmail.com
Wed Oct 20 05:40:24 UTC 2004


Hey folks. I'm having a problem mounting a SMB share with some
specific options. I'd like to mount it read/write, and with me (aaron)
as the owner (so i can read/write files without root or sudo-ing).

When I do the following, I can get read/write working and the files
and folders WITHIN the mount point belong to "aaron:users" (and I'm
not sure why) - "/home/aaron/Music" is owned by root but all the
files, folders and subfolders in Music are owned by me:

sudo mount -t smbfs -o rw //wiggum/music /home/aaron/Music

(obligatory wiggum quote: "Me fail English? Unpossible!") :-)

It would seem that I just need to add "uid=aaron" (the man page says
you can use the UID or just a username), but when I add that it just
spits usage information at me.

sudo mount -t smbfs -o rw uid=aaron //wiggum/music /home/aaron/Music

I'm 100% sure it's a syntax problem, but a person can only fail so
many times before he starts getting frustrated! I've tried rearranging
the options and moving them after the directory names, but so far
nothing has worked. Does anybody see what I'm doing wrong?

I haven't attempted to do all this mounting in fstab yet, but if
you're already answering my other question, you can give some advice
about that too. ;-)

Thanks!

-- 
Aaron

-------------------------------------------------------------------------------
Art, like morality, consists of drawing the line somewhere. ~ G.K. Chesterton




More information about the ubuntu-users mailing list