LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-11-2007, 08:39 PM   #1
oskar
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.

---edit---
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 08:43 PM.
 
Old 10-12-2007, 01:05 AM   #2
jdiggitydogg
Member
 
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.
 
  


Reply


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-19-2008 12:03 AM
cifs not using uid and gid mattd7591 Linux - General 10 07-19-2007 12:30 PM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 12:39 PM
Urgent help required for set UID/GID Permission Linux_interest Linux - Newbie 2 09-15-2004 09:27 AM
changing uid, gid zeke1955 Linux - General 4 01-10-2004 12:53 AM


All times are GMT -5. The time now is 11:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration