LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-03-2008, 08:32 PM   #1
bootkernel
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
pwd: error retrieving current directory: getcwd: cannot access parent directories: Permission denied

Code:
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

Code:
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


Lynn
 
Old 05-05-2008, 05:45 AM   #2
introuble
Member
 
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.
 
  


Reply



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 01:19 AM
Problem with X consoles - "shell-init: error retrieving current directory" lowpro2k3 Slackware 4 03-26-2007 06:36 PM
symlink-hook: error retrieving current directory: getcwd: cannot access parent dire sailu_mvn Linux - Software 1 03-09-2006 06:01 AM
cannot access parent directories kisembo Linux - General 2 02-13-2006 12:16 PM
reset pwd to root's current pwd? ataraktos2 Linux - General 10 04-26-2005 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:02 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
Open Source Consulting | Domain Registration