Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-11-2007, 07:39 PM   #1
Senior Member
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
UID/GID permission questions (sharing an external drive between users)

So I have a external usb-hd with my files. It's formatted as ext3, all of the files were written to it from ubuntu were I had uid:1000 and gid:1000. Now I'm on fedora where I have uid:500 and gid:500. The removable-device-automount thing mounts the drive with drwxr-xr-x for 1000:1000. But most files are only readable for uid:1000, not even for the group 1000. But anyway, I would like to write to it without causing a mess. I might move back to ubuntu in a month or so, so I don't want to pillage and plunder, I want to solve this like a big boy.
I know I'm missing something obvious.

All the files can be changed to have the same access permission. So chown-ing them all would be an option

Last edited by oskar; 10-11-2007 at 07:43 PM.
Old 10-12-2007, 12:05 AM   #2
Registered: Sep 2007
Posts: 42

Rep: Reputation: 15
the way I see it, you can:

(1) use the find command to change the UID & GID on the USB files

(2) change your user's UID & GID on Fedora from 500 to 1000 (or vice versa on Ubuntu). Then do #1 on the local system changing all files with UID/GID of 500 to 1000 (so your user can still access them -- like files in your user's home directory).

(3) expand group's permissions on the USB files; add a group on the Fedora machine with ID 1000 and put users with UIDs 500 & 1000 into that group.

Other options probably exist.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is uid and gid rmanocha Linux - Software 9 08-18-2008 11:03 PM
cifs not using uid and gid mattd7591 Linux - General 10 07-19-2007 11:30 AM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 11:39 AM
Urgent help required for set UID/GID Permission Linux_interest Linux - Newbie 2 09-15-2004 08:27 AM
changing uid, gid zeke1955 Linux - General 4 01-09-2004 11:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 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
Open Source Consulting | Domain Registration