In solaris 9 (5.9) I fail to mkdir with user builder, the user exist in the group defined as owner for that path.

bash-2.05$ groups builder  
other root sys   

and this is the file structure:

 bash-2.05$ ls -la / | grep opt
lrwxrwxrwx   1 root     other         16 Apr 14  2008 opt -> /export/home/opt
bash-2.05$ ls -la /export/home/ | grep opt
drwxr-xr-x  13 root     other        512 Jan 24 11:49 opt

builder belong to other group, why does it fail to mkdir in /opt ?

bash-2.05$ pwd
bash-2.05$ mkdir dire
mkdir: Failed to make directory "dire"; Permission denied

The other group does not have write permissions in that directory. Write permissions are needed to create directory entries, such as files and subdirectories.

To give the other group write permissions, as root do

chmod g+w /export/home/opt
  • you are right, I missed the GROUP permission part in list files
    – ilansch
    Apr 22 '18 at 9:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.