Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Non-root users cannot list / <SOLVED>
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mcewanbr
n00b
n00b


Joined: 29 Jan 2004
Posts: 14

PostPosted: Sun Sep 18, 2005 9:30 pm    Post subject: Non-root users cannot list / <SOLVED> Reply with quote

Just finished installing gentoo, however when I am in shell as a non-root user, when cd'ing to / then issuing an ls, I get...
Code:
home /> ls
ls: .: Permission denied
This is what my fstab reads for the / mount...
Code:
/dev/hdb3               /               reiserfs        defaults,noatime     0 1
The strange thing is that it seemed to have worked before. Below is an ls -al of /...
Code:
home / # ls -al
total 16
d-wxr----t  20 root root   464 Sep 17 18:58 .
d-wxr----t  20 root root   464 Sep 17 18:58 ..
drwxr-xr-x   2 root root  3544 Sep 17 17:57 bin
drwxr-xr-x   4 root root  1024 Sep 18 14:22 boot
drwxr-xr-x  22 root root 30640 Sep 18 15:31 dev
drwxr-xr-x  53 root root  3632 Sep 18 15:32 etc
drwxr-xr-x   4 root root   120 Sep 18 15:32 home
drwxr-xr-x   8 root root  3768 Sep 17 17:36 lib
drwxr-xr-x   5 root root   144 Sep 17 19:38 mnt
drwxr-xr-x   5 root root   152 Sep 18 00:18 opt
dr-xr-xr-x  79 root root     0 Sep 18 09:18 proc
drwx------   8 root root   432 Sep 18 15:18 root
drwxr-xr-x   2 root root  3608 Sep 16 17:14 sbin
drwxr-xr-x  10 root root     0 Sep 18 09:18 sys
drwxrwxrwt  12 root root   560 Sep 18 15:33 tmp
drwxr-xr-x  16 root root   488 Sep 17 17:33 usr
drwxr-xr-x  13 root root   360 Sep 16 17:44 var
drwxr-xr-x   2 root root    48 Sep 17 18:58 windows
...as you can see, most directories are read/execute for everyone.

Any ideas?


Last edited by mcewanbr on Sun Sep 18, 2005 9:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
paulbarker
n00b
n00b


Joined: 27 Feb 2005
Posts: 70
Location: Manchester, UK

PostPosted: Sun Sep 18, 2005 9:37 pm    Post subject: Reply with quote

Try looking at "http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5", find the red box half way down the page. This has been covered many times I believe
Back to top
View user's profile Send private message
mcewanbr
n00b
n00b


Joined: 29 Jan 2004
Posts: 14

PostPosted: Sun Sep 18, 2005 9:41 pm    Post subject: Reply with quote

Nice, not sure how I missed that!

So now that I am fully installed, is there any way to fix this without starting over?

Maybe boot to the livecd then chmod it?
Back to top
View user's profile Send private message
paulbarker
n00b
n00b


Joined: 27 Feb 2005
Posts: 70
Location: Manchester, UK

PostPosted: Sun Sep 18, 2005 9:46 pm    Post subject: Reply with quote

Yep, boot to the live cd and mount the partitions as you did at the start of the install, do the chmod, unmount, reboot, HAND.
Back to top
View user's profile Send private message
mcewanbr
n00b
n00b


Joined: 29 Jan 2004
Posts: 14

PostPosted: Sun Sep 18, 2005 9:51 pm    Post subject: Reply with quote

Well, I tried it before I recieved your reply and it worked like a charm! 8)

WHEW!!!!

Thanks for pointing that out to me, I was moving into perpetual frustration mode.

SOLUTION
Code:
1.  boot to live cd

2. mount your root partition to /mnt/gentoo (in my case, it was mount /dev/hdb3 /mnt/gentoo)

3.  chmod 755 /mnt/gentoo

4.  umount /mnt/gentoo

5.  reboot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum