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