Created on 05-10-2019 03:49 PM - edited 09-16-2022 07:23 AM
I use chmod to give others the read permission on the home/maria_dev directory. However, the user hive still cannot read the directory.
[maria_dev@sandbox-hdp ~]$ ls -ld drwx---r-- 1 maria_dev maria_dev 4096 Mar 5 05:35 . [maria_dev@sandbox-hdp ~]$ sudo su hive [hive@sandbox-hdp maria_dev]$ ls ls: cannot open directory .: Permission denied
Created 05-12-2019 06:21 PM
You must provide read and execute (r-x) permissions to others.
Try this
$ chmod 705 /home/maria_dev $ sudo su hive $ ls -l /home/maria_dev
Created 05-12-2019 07:05 AM
I think there is a problem with your command the - (hyphen) is missing can you copy and paste the below
$ sudo su - hive
Please revert
Created 06-14-2019 10:04 PM
My intention is to use "su hive", not "su - hive".
Below is the resource showing the difference.
https://www.tecmint.com/difference-between-su-and-su-commands-in-linux/
Thanks.
Created 05-12-2019 06:21 PM
You must provide read and execute (r-x) permissions to others.
Try this
$ chmod 705 /home/maria_dev $ sudo su hive $ ls -l /home/maria_dev
Created 06-14-2019 09:57 PM
Thanks. You are right. The execute permission is required for entering the directory.