Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-03-2008, 09:32 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
pwd: error retrieving current directory: getcwd: cannot access parent directories: Pe

On my os (building from scratch)
in /root dir a common user run
pwd: error retrieving current directory: getcwd: cannot access parent directories: Permission denied

lynn@Linux-vserver:/root$ ls -ld /root
drwx------ 2 root root 4096 Apr 29 15:05 /root
lynn@Avct Linux-vserver:/root$
I know that a common user doesn't have access to /root dir
but in some populate distribution,it don't give above message

lynn@ Linux-vserver:/root$ bash --version
GNU bash, version 3.2.25(1)-release (i686-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
lynn@Avct Linux-vserver:/root$

pwd commmand comes from shell

thanks for your help

Old 05-05-2008, 06:45 AM   #2
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
I'm not sure I'm getting this. Are you saying a regular user who's current directory is "/root" is getting that error when issuing `pwd`? How is the user getting inside /root in the first place?

"Some popular distributions" don't set /root's permissions to 700 (as on your box) by default but rather 755 or such.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
su shell-init: error retrieving current directory: getcwd: cannot access parent direc linuxgentoo Linux - General 4 11-07-2007 02:19 AM
Problem with X consoles - "shell-init: error retrieving current directory" lowpro2k3 Slackware 4 03-26-2007 07:36 PM
symlink-hook: error retrieving current directory: getcwd: cannot access parent dire sailu_mvn Linux - Software 1 03-09-2006 07:01 AM
cannot access parent directories kisembo Linux - General 2 02-13-2006 01:16 PM
reset pwd to root's current pwd? ataraktos2 Linux - General 10 04-26-2005 05:13 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration