LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Howto change the ownership of mounted smb resource?? (https://www.linuxquestions.org/questions/linux-newbie-8/howto-change-the-ownership-of-mounted-smb-resource-269251/)

sys7em 12-22-2004 01:29 PM

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:

Tinkster 12-22-2004 01:37 PM

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

sys7em 12-22-2004 01:38 PM

10x x a lot :)

skm 12-23-2004 02:30 PM

i don't mean to be a noobie here but what do you put in the fields for username password uid and gid? :newbie:

Tinkster 12-23-2004 02:48 PM

Hi, and welcome to LQ!

Quote:

Originally posted by skm
i don't mean to be a noobie here but what do you put in the fields for username password uid and gid? :newbie:
I would have thought that the first two are rather
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.