beekayverma
January 24th, 2021, 08:51 PM
Hey guys,
I’m a new linux user and learning ubuntu CLI. I’m trying to use ‘ls’ command to test the user & groups things.
so I have main user ‘beekay’ and other 2 new ones as mentioned in the text below. both can use the ls for /home/username directories howver beekay can’t
please help. below are the groups, ownerships for the folders. only problem with user beekay is that it can’t ls into /home/felipe.
beekay@beekay-Ubuntu-20:~$ ls /home/yogi_v/
beekay@beekay-Ubuntu-20:~$ su - felipe
Password:
felipe@beekay-Ubuntu-20:~$ ls /home/yogi_v/
felipe@beekay-Ubuntu-20:~$ ls /home/beekay/
Desktop Downloads notes.txt Public Templates
Documents Music Pictures snap Videos
felipe@beekay-Ubuntu-20:~$ logout
beekay@beekay-Ubuntu-20:~$ ls /home/yogi_v/
beekay@beekay-Ubuntu-20:~$ ls
Desktop Downloads notes.txt Public Templates
Documents Music Pictures snap Videos
beekay@beekay-Ubuntu-20:~$ ls /home/
beekay felipe yogi_v
beekay@beekay-Ubuntu-20:~$ ls /home/felipe/
ls: cannot open directory '/home/felipe/': Permission denied
beekay@beekay-Ubuntu-20:~$ ls -ld /home/felipe/
drwxr-x--- 2 root student 4096 jaan 24 20:50 /home/felipe/
beekay@beekay-Ubuntu-20:~$
beekay@beekay-Ubuntu-20:~$ ls -ld /home/felipe/
drwxr-x--- 2 root student 4096 jaan 24 20:50 /home/felipe/
beekay@beekay-Ubuntu-20:~$ ls -ld /home/yogi_v/
drwxr-xr-x 2 root student 4096 jaan 24 20:53 /home/yogi_v/
beekay@beekay-Ubuntu-20:~$ ls -ld /home/beekay/
drwxr-xr-x 17 beekay beekay 4096 jaan 24 02:00 /home/beekay/
beekay@beekay-Ubuntu-20:~$ id beekay
uid=1000(beekay) gid=1000(beekay) groups=1000(beekay),4(adm),24(cdrom),27(sudo),30(d ip),46(plugdev),120(lpadmin),131(lxd),132(sambasha re),1001(student)
beekay@beekay-Ubuntu-20:~$ id felipe
uid=1001(felipe) gid=1002(felipe) groups=1002(felipe),1001(student)
beekay@beekay-Ubuntu-20:~$ id yogi_v
uid=1002(yogi_v) gid=1003(yogi_v) groups=1003(yogi_v),1001(student)
beekay@beekay-Ubuntu-20:~$ su - yogi_v
Password:
yogi_v@beekay-Ubuntu-20:~$ ls /home/felipe/
yogi_v@beekay-Ubuntu-20:~$ ls /home/beekay/
Desktop Documents Downloads Music notes.txt Pictures Public snap Templates Videos
yogi_v@beekay-Ubuntu-20:~$ logout
beekay@beekay-Ubuntu-20:~$ su - felipe
Password:
felipe@beekay-Ubuntu-20:~$ ls /home/yogi_v/
felipe@beekay-Ubuntu-20:~$ ls /home/beekay/
Desktop Documents Downloads Music notes.txt Pictures Public snap Templates Videos
felipe@beekay-Ubuntu-20:~$ logout
beekay@beekay-Ubuntu-20:~$ ls /home/yogi_v/
beekay@beekay-Ubuntu-20:~$ ls /home/felipe/
ls: cannot open directory '/home/felipe/': Permission denied
beekay@beekay-Ubuntu-20:~$
I’m a new linux user and learning ubuntu CLI. I’m trying to use ‘ls’ command to test the user & groups things.
so I have main user ‘beekay’ and other 2 new ones as mentioned in the text below. both can use the ls for /home/username directories howver beekay can’t
please help. below are the groups, ownerships for the folders. only problem with user beekay is that it can’t ls into /home/felipe.
beekay@beekay-Ubuntu-20:~$ ls /home/yogi_v/
beekay@beekay-Ubuntu-20:~$ su - felipe
Password:
felipe@beekay-Ubuntu-20:~$ ls /home/yogi_v/
felipe@beekay-Ubuntu-20:~$ ls /home/beekay/
Desktop Downloads notes.txt Public Templates
Documents Music Pictures snap Videos
felipe@beekay-Ubuntu-20:~$ logout
beekay@beekay-Ubuntu-20:~$ ls /home/yogi_v/
beekay@beekay-Ubuntu-20:~$ ls
Desktop Downloads notes.txt Public Templates
Documents Music Pictures snap Videos
beekay@beekay-Ubuntu-20:~$ ls /home/
beekay felipe yogi_v
beekay@beekay-Ubuntu-20:~$ ls /home/felipe/
ls: cannot open directory '/home/felipe/': Permission denied
beekay@beekay-Ubuntu-20:~$ ls -ld /home/felipe/
drwxr-x--- 2 root student 4096 jaan 24 20:50 /home/felipe/
beekay@beekay-Ubuntu-20:~$
beekay@beekay-Ubuntu-20:~$ ls -ld /home/felipe/
drwxr-x--- 2 root student 4096 jaan 24 20:50 /home/felipe/
beekay@beekay-Ubuntu-20:~$ ls -ld /home/yogi_v/
drwxr-xr-x 2 root student 4096 jaan 24 20:53 /home/yogi_v/
beekay@beekay-Ubuntu-20:~$ ls -ld /home/beekay/
drwxr-xr-x 17 beekay beekay 4096 jaan 24 02:00 /home/beekay/
beekay@beekay-Ubuntu-20:~$ id beekay
uid=1000(beekay) gid=1000(beekay) groups=1000(beekay),4(adm),24(cdrom),27(sudo),30(d ip),46(plugdev),120(lpadmin),131(lxd),132(sambasha re),1001(student)
beekay@beekay-Ubuntu-20:~$ id felipe
uid=1001(felipe) gid=1002(felipe) groups=1002(felipe),1001(student)
beekay@beekay-Ubuntu-20:~$ id yogi_v
uid=1002(yogi_v) gid=1003(yogi_v) groups=1003(yogi_v),1001(student)
beekay@beekay-Ubuntu-20:~$ su - yogi_v
Password:
yogi_v@beekay-Ubuntu-20:~$ ls /home/felipe/
yogi_v@beekay-Ubuntu-20:~$ ls /home/beekay/
Desktop Documents Downloads Music notes.txt Pictures Public snap Templates Videos
yogi_v@beekay-Ubuntu-20:~$ logout
beekay@beekay-Ubuntu-20:~$ su - felipe
Password:
felipe@beekay-Ubuntu-20:~$ ls /home/yogi_v/
felipe@beekay-Ubuntu-20:~$ ls /home/beekay/
Desktop Documents Downloads Music notes.txt Pictures Public snap Templates Videos
felipe@beekay-Ubuntu-20:~$ logout
beekay@beekay-Ubuntu-20:~$ ls /home/yogi_v/
beekay@beekay-Ubuntu-20:~$ ls /home/felipe/
ls: cannot open directory '/home/felipe/': Permission denied
beekay@beekay-Ubuntu-20:~$