Howto change the ownership of mounted smb resource??
I have mounted a smb resource with the following command:
#mount -t smbfs -o username=111,password=123 //COMP/Storage /mnt/comp I want to change the ownership from root to a user ... I try the command: #chown username:users -Rv /mnt/comp But it sez: "Operation not permitted" Why is that? How can I fix this? Thanks in advance ... :confused: :confused: :study: :scratch: |
Because ntfs/fat32 (and thus smbfs) know nothing of
linux perms ... what you want is: mount -t smbfs -o username=111,password=123,uid=<UID>,gid=<GID> //COMP/Storage /mnt/comp |
10x x a lot :)
|
i don't mean to be a noobie here but what do you put in the fields for username password uid and gid? :newbie:
|
Hi, and welcome to LQ!
Quote:
self-explanatory ... the share is most likely set-up with some sort of authentication, quite commonly based on a username and password :) ... that's the things you put in username and password... uid and gid is the numerical ID of the user and group that you want to be able to write to that share by default. Cheers, Tink P.S.: And a brief intro to LQ netiquette: please don't hi-jack a thread just because it kind of matches your question. If you search the site and find something that covers the question completely you don't need to ask ;) and if it doesn't start a new thread! |
All times are GMT -5. The time now is 10:41 AM. |