*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> sysadm/modifyPermissionsAndOwnership (1)              


modifyPermissionsAndOwnership(1M)	     modifyPermissionsAndOwnership(1M)

NAME    [Toc]    [Back]

     modifyPermissionsAndOwnership - modify permissions	and ownership of files

SYNOPSIS    [Toc]    [Back]

     /usr/sysadm/privbin/modifyPermissionsAndOwnership [-u <pstring>] [-p
     <pstring>]	[-d <pstring>] [-O <uid	| uname>] [-G <gid | gname>] [-D]
     file1 file2 ... fileN, [<next-set-of-modifications-and-files>,] ...

DESCRIPTION    [Toc]    [Back]

     modifyPermissionsAndOwnership modifies the	permissions and/or ownership
     of	files and directories using chown(1) and chmod(1).

     The modifyPermissionsAndOwnership command requires	at least one set of
     modifications and one set of files.  These	sets must be non-empty.	 Each
     pair of modifications and the files they should be	applied	to should be
     separated by commas.

     The modifications can be specified	as follows (at least one is required):

     -u	<pstring>
	  Specifies the	changes	to make	to the user permissions.

     -p	<pstring>
	  Specifies the	changes	to make	to the group permissions.

     -d	<pstring>
	  Specifies the	changes	to make	to the world/other permissions.

     <pstring> has the following format:
	  [r<+|->][w<+|->][x<+|->] where "r+w-"	indicates that read permission
	  should be added, write permissions should be taken away, and execute
	  permission should remain unchanged

     -O	<uid | uname>
	  Specifies the	new owner ID or	name.

     -g	<gid | gname>
	  Specifies the	new group ID or	name.

     -D	  Specifies that the command should be applied recursively to
	  directories (ie. descend into	directories and	repeat command on
	  their	contents). Note	that modifications specified on	execute
	  permissions will only	be applied to the contained subdirectories and
	  not the contained files.

EXAMPLES    [Toc]    [Back]

     To	make bob the owner of all .h and .c++ files and	cindy the owner	of all
     .o	files:

     modifyFilePermissionsAndOwnership -O bob *.h *.c++, -O cindy *.o

									Page 1

modifyPermissionsAndOwnership(1M)	     modifyPermissionsAndOwnership(1M)

     To	give the group read and	write permissions for file1.dat, file2.dat,
     and file3.dat and give world read permissions just	for file3.dat:

     modifyFilePermissionsAndOwnership -p r+w+ file1.dat file2.dat file3.dat,
     -d	r+ file3.dat

SEE ALSO    [Toc]    [Back]

     chmod(1), chown(1), chgrp(1), permissions(1m), sysmgr(1m)

									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
permissions IRIX Change Permissions - Modify Permissions and Ownership of Files
faked Linux daemon that remembers `fake' ownership/permissions of files manipulated by fakeroot processes.
dpkg-statoverride Linux override ownership and mode of files
dh_fixperms Linux fix permissions of files in package build directories
acl_delete_perm Tru64 Delete permissions from a set of permissions belonging to an ACL entry
setacl HP-UX modify access control lists (ACLs) for files (JFS File Systems only)
chacl HP-UX add, modify, delete, copy, or summarize access control lists (ACLs) of files
chgrp Linux change group ownership
quot IRIX summarize filesystem ownership
chown Linux change ownership of a file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service