LinuxQuestions.org
Register a domain and help support LQ
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 08-05-2007, 02:13 AM   #1
ubuntora
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Rep: Reputation: 0
Problem with permisions running multiple distros


Hi, I just installed fedora 7 after running ubuntu 7 for some time. While setting up fedora, i manually mounted all my partitions in fstab successfully. But then i needed permission of my ubuntu partition so i changed the owner of the folder where i mounted it and all sub-files to my fedora user. Now when i try to log into ubuntu, i get an error about $HOME/.dmrc and $HOME directories not having permissions, among other permission errors. I tried changing those permissions back but it doesn't work. When i tried to change back the owner from fedora to my ubuntu user, it doesn't save the read/write option enabled. What do i do?!
 
Old 08-05-2007, 03:23 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, and welcome to LQ!

The clean thing to do would have been to modify the fstab entry
to allow users to mount. Ideally you would also have made the
numerical ID of your user the same in both distros /etc/passwd
file ...

That all said: I'm not sure I understand the bit about the
Quote:
it doesn't save the read/write option enabled.
What do you mean?


Cheers,
Tink
 
Old 08-05-2007, 03:39 AM   #3
ubuntora
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks, um, i'll try to be more specific. Here's my unmodified fstab:

LABEL=/ / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda8 swap swap defaults 0 0

and i added

/dev/sda6 /media/ubuntu ext3 defaults 0 0

is that right? Then in nautilus i went to the properties of /media/ubuntu and changed the owner of it and all subfiles to my fedora user (which is the same name as my ubuntu user). But before i changed it, it said the owner was "1000". hmm. And the read/write option was in the properties of the folder as well.
Thanks for the help!
 
Old 08-05-2007, 05:12 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
So which mountpoint is /dev/sda6 under Ubuntu?



Cheers,
Tink
 
Old 08-05-2007, 06:56 AM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Fedora uses 500 by default while Ubuntu uses 1000. The best solution, as pointed out above, is to make sure that you have the same UID and GID on all of your systems. Setting all of them to 1000 works fine for me.
 
Old 08-05-2007, 06:00 PM   #6
ubuntora
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Original Poster
Rep: Reputation: 0
/dev/sda6 is my / partition in ubuntu. OK, from fedora i tried changing back the permissions of the ubuntu partition back to 1000, but it always freezes and doesn't finish. but i tried going back to ubuntu, i got to the gdm screen, logged in and an error appeared (it was there before)

session lasted less than 10 seconds ...

...
etc/gdm/Xsessions:Beginning session startup...
mkdtemprivate socket dir:Permission denied


is that helpful at all? and i checked out my user id line in /etc/passwd and they are the same in both.

thanks a lot!!!
 
Old 08-05-2007, 06:02 PM   #7
ubuntora
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Original Poster
Rep: Reputation: 0
thats actually

mkdtemp: private socket dir:

not :P
 
Old 08-05-2007, 07:19 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
It sounds as if files in your /tmp directory are still using the wrong permissions. Run ls -l on tmp from the command line (you can boot to a command line by putting "single" after your bootline in GRUB). If certain files in /tmp have a number instead of a name as UID/GID, you need to change them to your proper UID/GID. On Debian, a proper tmp would look something like this:

drwx------ 3 jurgen jurgen 17 2007-08-06 03:00 gconfd-jurgen
drwxr-xr-x 2 tomcat55 nogroup 17 2007-08-06 02:59 hsperfdata_tomcat55
drwx------ 2 jurgen jurgen 19 2007-08-06 03:00 keyring-edjB2T
srwxr-xr-x 1 jurgen jurgen 0 2007-08-06 03:00 mapping-jurgen
drwx------ 2 jurgen jurgen 4096 2007-08-06 03:15 orbit-jurgen
-rw------- 1 root root 29 2007-08-06 02:58 sqlDY7jNh
drwx------ 2 jurgen jurgen 49 2007-08-06 03:00 ssh-sNUthz4566
drwx------ 2 jurgen jurgen 6 2007-08-06 03:00 virtual-jurgen.1AKCth
 
Old 08-05-2007, 08:12 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by ubuntora
/dev/sda6 is my / partition in ubuntu. OK, from fedora i tried changing back the permissions of the ubuntu partition back to 1000, but it always freezes and doesn't finish. but i tried going back to ubuntu, i got to the gdm screen, logged in and an error appeared (it was there before)

session lasted less than 10 seconds ...

...
etc/gdm/Xsessions:Beginning session startup...
mkdtemp:private socket dir:Permission denied


is that helpful at all? and i checked out my user id line in /etc/passwd and they are the same in both.

thanks a lot!!!
When you say they're the same I assume you mean that they
have the same name. The name (to the file-system and the
permissions) is meaningless. It's the numeric ID that
matters; if one was say 1000 and the other 501 you'd run
into that kind of issues.



Cheers,
Tink
 
Old 08-07-2007, 12:25 AM   #10
ubuntora
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Original Poster
Rep: Reputation: 0
alright, i finally got ubuntu to log me in. in fedora, i did
chown -R root /media/ubuntu
chown -R 1000 /media/ubuntu/home
but i'm pretty sure that ubuntu didn't appreciate that because while most of the system worked, i couldn't start some kde apps and my network didn't work at all. oh well, i just quit and did a fresh ubuntu install on another partition. and on my /tmp the permissions were with my uid. thanks for all the help!!
 
Old 08-07-2007, 01:31 AM   #11
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
OK but did that solve the issue you had with the shared partition? Did you specify a UID/GID of 500 during the install or are you bach where you started from?
 
  


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
Boot problems with multiple Distros on a pentium 4. USB Problem? tommosimmo Fedora - Installation 3 03-25-2007 03:18 AM
problem viewing multiple FC4 partitions from other distros (and Windows) thanto_ Fedora 5 02-14-2006 10:11 PM
howto chowto change file permisions in multiplhange file permisions in multiple dirs? pingvina Linux - Software 3 01-13-2006 04:10 PM
Multiple distros on same hard drive problem baue8673 Linux - Software 4 02-11-2004 01:20 PM
Running multiple linux distros Eultza Linux - General 4 11-22-2003 09:29 AM


All times are GMT -5. The time now is 10:29 PM.

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