Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-21-2009, 09:44 AM
|
#1
|
Member
Registered: Feb 2008
Posts: 635
Rep:
|
accessing centos5.2 partition from ubuntu : "bash: cd: ckgan: Permission denied"
I have installed centos5.2 on /dev/sda3 but I have also installed ubuntu on the same physical machine on a different partition.
I logon to ubuntu and
I tried to "cd /sda3/home/ckgan" but I get
"bash: cd: /sda3/home/ckgan: Permission denied"
I could still access /sda3/home/ckgan using the root account, in fact:
root@ubuntu804-32-dell:/sda3/home# ls -dl ckgan
drwx------ 46 500 500 4096 2009-02-21 13:49 ckgan
I vaguely remember I don't have such problem when I login to centos5.2.
What should I do ?
Thanks!
|
|
|
02-21-2009, 10:05 AM
|
#2
|
Member
Registered: Feb 2008
Posts: 635
Original Poster
Rep:
|
Another observation: from centos5.2, I can access Fedora 10 partition or
ubuntu partition.
sda7 is the F10 partition:
[ckgan@centos52-64-dell home]$ ls -ld /sda7/home/ckgan
drwx------ 27 ckgan ckgan 4096 Feb 8 00:01 /sda7/home/ckgan
sda8 is the ubuntu partition:
[ckgan@centos52-64-dell home]$ ls -ld /sda8/home/ckgan
drwxr-xr-x 36 1000 1000 4096 Feb 21 23:55 /sda8/home/ckgan
So I don't understand something very basic I think...
|
|
|
02-22-2009, 12:11 AM
|
#3
|
Member
Registered: Feb 2008
Posts: 635
Original Poster
Rep:
|
After chown files to ckgan, i have "solved" the problem.
ckgan@ubuntu804-32-dell:~$ ls -ld /sda3/home/ckgan
drwx------ 46 ckgan ckgan 4096 2009-02-22 14:02 /sda3/home/ckgan
Someone may tell me why it was
root@ubuntu804-32-dell:/sda3/home# ls -dl ckgan
drwx------ 46 500 500 4096 2009-02-21 13:49 ckgan
Why that "500"?! Oh well, I am venturing into the dark sides of linux..
|
|
|
02-22-2009, 12:32 AM
|
#4
|
Member
Registered: Feb 2008
Posts: 635
Original Poster
Rep:
|
Another surprise awaiting, when I boot up centos5.2 and try to login as ckgan,
an error message shows up:
"User's $HOME/.dmrc file is being ignored. This prevents the defaults session and language from being saved. File should be owned by user and have 644 permissions. User $HOME directory must be owned by user and not
writable by other users."
A "ls -dl ckgan" shows that
drwx------- 46 1000 1000 Feb 22 14:33 ckgan
So I have chown ckgan back in Centos in order to login.
What is going here ?
|
|
|
02-23-2009, 08:04 PM
|
#5
|
Member
Registered: Feb 2008
Posts: 635
Original Poster
Rep:
|
I guess I can read about the huge manuals on mount, ls -l, chgrp, uid, but is anyone there could provide a simple solution? I guess I am not the first to want to share partitions across different linux systems. Thanks!
|
|
|
02-24-2009, 12:18 AM
|
#6
|
Member
Registered: Feb 2008
Posts: 635
Original Poster
Rep:
|
finally i asked someone who knows linux. Basically the uid for ckgan on centos5.2 and f10 are the same, which is 500. For ubuntu, the uid happens to be 1000, but then the default mode is to allow others to read and execute. finally i understood the issues of uid and gid. i hope my experience will be useful to others...
|
|
|
All times are GMT -5. The time now is 07:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|