Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1997-08-15
8
Medium Priority
?
456 Views
Last Modified: 2010-04-22
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
Comment
Question by:mwche2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006652
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
 

Expert Comment

by:bombadil
ID: 2006653
Which OS?
0
 

Author Comment

by:mwche2
ID: 2006654
All flavours of UNIX (Linux, Ultrixs, Solaris, BSD, System V(s), etc)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 5

Expert Comment

by:n0thing
ID: 2006655
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
 
LVL 1

Expert Comment

by:ragnar
ID: 2006656
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
 

Author Comment

by:mwche2
ID: 2006657
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
 

Expert Comment

by:bombadil
ID: 2006658
Given that, the answer is "no".
0
 
LVL 1

Accepted Solution

by:
wex earned 400 total points
ID: 2006659
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question