LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
 
Search this Thread
Old 02-21-2009, 09:44 AM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 412
Blog Entries: 1

Rep: Reputation: 35
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!
 
Old 02-21-2009, 10:05 AM   #2
centguy
Member
 
Registered: Feb 2008
Posts: 412
Blog Entries: 1

Original Poster
Rep: Reputation: 35
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...
 
Old 02-22-2009, 12:11 AM   #3
centguy
Member
 
Registered: Feb 2008
Posts: 412
Blog Entries: 1

Original Poster
Rep: Reputation: 35
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..
 
Old 02-22-2009, 12:32 AM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 412
Blog Entries: 1

Original Poster
Rep: Reputation: 35
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 ?
 
Old 02-23-2009, 08:04 PM   #5
centguy
Member
 
Registered: Feb 2008
Posts: 412
Blog Entries: 1

Original Poster
Rep: Reputation: 35
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!
 
Old 02-24-2009, 12:18 AM   #6
centguy
Member
 
Registered: Feb 2008
Posts: 412
Blog Entries: 1

Original Poster
Rep: Reputation: 35
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...
 
  


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
Logging in as root get "/bin/bash: Permission denied" MikeyCarter Linux - Software 16 07-24-2014 02:20 PM
"bash: /dev/null: Permission denied" on Ubuntu Login... sancho Ubuntu 10 10-07-2009 11:38 PM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
"Permission Denied" while accessing ntfs partition in user mode funkymunky Linux - General 3 01-31-2009 08:03 PM
"Permission denied" and "recursive directory loop" when searching for string in files mack1e Linux - Newbie 5 06-12-2008 07:38 AM


All times are GMT -5. The time now is 04: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