Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-11-2008, 08:04 AM   #1
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Rep: Reputation: 15
mount with given uid,gid

I am mounting a LVM volume (ext3) which was used on another computer and want all files and directories on it
to be accessible with my uid,gid.

I could just mount it and then
find . -type f -exec chown ernst:ernst {} \;
find . -type d -exec chown ernst:ernst {} \;

Maybe I could specify in fstab to regard all files on that volume to have my uid.gid.
However I did not find out anything about this in the man page for mount.

Old 09-11-2008, 09:04 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
No, user and group properties are only set at mount time for filesystems that do not support unix permissions internally. You could just mount it and do: chown -R ernst:ernst /mount/point


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is uid and gid rmanocha Linux - Software 9 08-19-2008 12:03 AM
mount fat32 partition in several different locations with individual uid/gid BigMomma Linux - Newbie 4 09-05-2007 11:34 AM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 12:39 PM
SuSE 9.2, Samba, wrong GID/UID after mount dickohead Linux - Networking 2 04-21-2005 05:38 AM
changing uid, gid zeke1955 Linux - General 4 01-10-2004 12:53 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:41 AM.

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