LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2004, 01:29 PM   #1
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
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 ...



 
Old 12-22-2004, 01:37 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 12-22-2004, 01:38 PM   #3
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 30
10x x a lot
 
Old 12-23-2004, 02:30 PM   #4
skm
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
i don't mean to be a noobie here but what do you put in the fields for username password uid and gid?
 
Old 12-23-2004, 02:48 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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!
 
  


Reply



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
Cannot change ownership jamaso Slackware 11 11-08-2010 11:01 AM
Change ownership apffal SUSE / openSUSE 1 11-09-2005 02:08 AM
change ownership Johng Linux - General 4 04-06-2004 02:24 AM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 03:52 PM
Changing ownership of mounted filesystem jhansman Red Hat 4 09-11-2003 12:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 AM.

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