LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Permissions (https://www.linuxquestions.org/questions/solaris-opensolaris-20/permissions-461723/)

rust8y 07-07-2006 03:12 AM

Permissions
 
What is the command to grant everyone full permissions to /u1/database and its subdirectories?

What is the command to check the directory permission?

raskin 07-07-2006 03:32 AM

man chmod
man ls
chmod -R a+rwX /u1/database
ls -ld /u1/database

acid_kewpie 07-07-2006 03:33 AM

just use "ls -l" or "stat" to check permissions in general, and use chmod to change permissions on a file.

jlliagre 07-07-2006 04:41 AM

Quote:

Originally Posted by raskin
chmod -R a+rwX /u1/database

I initially thought the uppercase X was a typo, but found later it is in fact a smart chmod feature I was missing.

Thanks for advertising it!

prozac 07-07-2006 04:48 AM

Quote:

Originally Posted by jlliagre
I initially thought the uppercase X was a typo, but found later it is in fact a smart chmod feature I was missing.

Thanks for advertising it!

I had to check the manpages after doing
Code:

chmod -R a+rwX bin/
to see what it did (couldn't find out myself eh!)

Quote:

The letters rwxXstugo select the new permissions for the affected users: read (r), write (w), execute (or access for directories) (x), execute only if the file is a directory or already has execute permission for some user (X),
nice ;)

rust8y 07-07-2006 06:14 AM

Thank you all for your help. Much appreciated.

prozac 07-07-2006 06:34 AM

Quote:

Originally Posted by rust8y
Thank you all for your help. Much appreciated.

No, Thankyou for popping the question and making us learn something new.


All times are GMT -5. The time now is 05:50 PM.