cant cd and even after the read permission is set.
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Check if the directory has the executable permission set. For directories the x permission means you can access them, otherwise you get the permission denied error.
[usr1@arch ~] ls -l | grep music
drwxr-xr-x 4 usr1 users 4096 Aug 23 21:51 music
[usr1@arch ~] ls -l /home/usr2/ | grep music
ls: cannot open directory /home/usr2/: Permission denied
Code:
[usr2@arch ~] ls -l | grep music
lrwxrwxrwx 1 usr2 users 18 Aug 27 22:58 music -> /home/usr1/music
[usr2@arch ~] ls -l /home/usr1/ | grep music
d????????? ? ? ? ? ? music
[root@arch ~] chmod ogw+rx /home/usr1/music
chmod: invalid mode: `ogw+rx'
Try `chmod --help' for more information.
[root@arch ~] ls -ldz /home/usr1/music
ls: invalid option -- 'z'
Try `ls --help' for more information.
[root@arch ~] ls -ldZ /home/usr1/music
drwxr-xr-x 4 usr1 users ? 4096 Aug 23 21:51 /home/usr1/music
[root@arch ~] mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=218637,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
/dev/sda1 on / type ext4 (rw,commit=0)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.