Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 460
  • Last Modified:

chown, chgrp and chomd --- extra features and functionality

Besides the usual functions that chown , chgrp and chmod can perform (which is mentioned in man pages), is there any other hidden features and functions of the 3 commands mentioned above. (eg. history, sercurity, etc.)
0
mwche2
Asked:
mwche2
1 Solution
 
ahoffmannCommented:
Depends on the flavour of your UNIX, some don't describe that you can change owner and group with one call: just by calling chown.

To answer your question in details, one need to know what your man pages say about those commands.
0
 
bombadilCommented:
Which OS?
0
 
mwche2Author Commented:
All flavours of UNIX (Linux, Ultrixs, Solaris, BSD, System V(s), etc)
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
n0thingCommented:
No ... I haven't seen any hidden feature in those commands for
AIX, Linux, Solaris, SunOS 4.1.X. If you're looking for security
holes in those command, you won't find one.


0
 
ragnarCommented:
You might note that chmod has a -a flag for use on systems with ACL priveledges.  this flag makes it so that cown does not overrrite ACL's.

your question is extremely general.  possibly you are looking for a specific feature?  don't be surprised if no one can really help you on this, given the vagueness.
0
 
mwche2Author Commented:
Probably it'll be interesting to know about the possible implications of these commands, such as for breaching security holes, Trojan horses and hacking.
0
 
bombadilCommented:
Given that, the answer is "no".
0
 
wexCommented:
My bet is that you're looking for the so-called "sticky" bits.  You can set these bits on files/executables (e.g. chmod +s <file>) and when they're used they will retain the identity and permissions of the file *creator* not of the file *user*.

In fact, this is one of the biggest security problems with UNIXen since programs are often set to run as user root when they have no need to do so.

I use the sticky bit for group work (mode g+s) so that everyone in my workgroup can read/write a common set of data files.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now