coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Thursday April 28, 2016


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 19 guests online

Newest Member

nbewwmbxog

Hit Counter
17720226 Visitors

cool Statistics
coolcommands:1346
Categories:83
Total queries:657855
Members:22813





Search coolcommands.com
Search Keyword:


coolcommand

chmod - setting setuid or setgid
Description

Setting setuid or setgid with chmod

To setuid:

# chmod u+s dir | file

To setgid:

# chmod g+s dir | file

Meaning:

rwSrwSrwS ( "S" = "S - x" setuid/setgid but not executable)
rwsrwsrws ( "s" = "s + x" setuid/setgid and executable)
Example

chmod u+s file

Return to search results





Random coolcommands

coolcommand: how to get the exit code of an external command in perl
Example: $cmd="ls -la toto"; $ret=system($cmd); $status=$ret >> 8;
[show me the details]
coolcommand: connect to HMC with SSH
Example: ssh -l hscroot hmc_hostname
[show me the details]
coolcommand: devfsadm - add devices without rebooting in Sun Solaris
Example: /usr/sbin/devfsadm -c disk
[show me the details]
coolcommand: how to share your terminal window with a colleague in Unix
Example: script /dev/null | tee -a /dev/tty3
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1167
audet37
kah00na32
Mariom24
lebjf00015

Top 5 Searches

Category General UNIX59018
Category AIX54376
Category Solaris54176
solaris23972
aix23397

Terms of Use
Privacy
Contact


 
coolcommands.com © 2016. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum