![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Root cannot change /home permission | moe2266 | UNIX for Dummies Questions & Answers | 6 | 10-31-2007 07:19 AM |
| How to change the default permission of a file | reachsamir | UNIX for Dummies Questions & Answers | 2 | 08-28-2007 02:57 PM |
| Permission Change Upon Reboot | gross | SUN Solaris | 2 | 06-25-2007 08:34 AM |
| change permission chmod | Minguccio75 | UNIX for Advanced & Expert Users | 2 | 11-30-2006 01:48 AM |
| Change permission for directories and files | mingfei2006 | Shell Programming and Scripting | 1 | 08-23-2006 04:00 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Permission change query
I need to change permission for a directory from drwxrwxrwx to drwxr--s--T
What chmod command will work? What will be the number code to represent the required permission? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
The number is 3710 and
chmod 3710 dir should work. Unless your chmod implements silly restrictions against this (as, I believe, Solaris does). In that case, cheat a little bit with... perl -e 'chmod(03710, shift);' dir Code:
$ chmod 0 file $ perl -e 'chmod(03710,shift);' file $ ls -l file -rwx--s--T 1 bin other 41 Jul 18 02:27 file $ |
|
#3
|
|||
|
|||
|
Thanks Perderabo. I've read many of your articles in this site. It would be good if you could write one about permissions (including handling s and t bits).
Thank You! |
|
#4
|
||||
|
||||
|
Quote:
Unix File Permissions |
|
#5
|
|||
|
|||
|
Somehow I missed this one. Thank You!
You simply rock, Perderabo! |
|||
| Google The UNIX and Linux Forums |