08-01-2011
Where are the file the second id wants access to, and what acces does it need?
Root can chown files to anyone. You can make both same group and make group readable or even writable.
It is not wise to have mixed ownership in a subtree - only root can remove all id files and dirs unless permissions are wide open.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I don't know how the owner & group of a login file in redhat linux 7.2 changed to bache like,
-rwxr-xr-x 1 bache bache 17740 Jun 20 02:05 login
I am trying to change the owner and group to root by using
#chown root login
#chgrp root login
But i am getting the error ... (7 Replies)
Discussion started by: bache_gowda
7 Replies
2. UNIX for Dummies Questions & Answers
How to change the owner of group?
-rw-r--r-- 1 lead lead
Now I need to change LEAD to SUBLEAD.. how do I do this.
I am using this command.
$chown -R sublead test.lck
I get this message
chown: test.lck: Not owner
I am logged in a LEAD..
All your help in regards are greatly... (16 Replies)
Discussion started by: venkyA
16 Replies
3. UNIX for Dummies Questions & Answers
How to change the owner of the file?
Can I change the owner of file/ files?
I am user and not admin.(not logged as root) (1 Reply)
Discussion started by: redlotus72
1 Replies
4. UNIX for Dummies Questions & Answers
im running into changing the ownership of a file. I am trying to change the ownership to "system", but it doesn't want to work. I
sudo chown system /preferences.plist
Password:
chown: system: Invalid argument
is there a way to read the ownership of a file, something like
read chown... (3 Replies)
Discussion started by: CBarraford
3 Replies
5. UNIX for Dummies Questions & Answers
sm860 IS the owner of the files below,but yet sm860 cannot change the ownership to bpt3a1.Please let me know why ?
See below for details
---
sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ ls -l pcasav*
-rw-r--r-- 1 sm860 gdpintegrators 821 Sep 21 16:15... (8 Replies)
Discussion started by: MSHETTY
8 Replies
6. Shell Programming and Scripting
Dear All,
i have a file and i want to change the owner of that file from another user.
for example
$ ls -l pkc.txt
-rw-r--r-- 1 tdmscrdr dba 717 Nov 2 17:10 pkc.txt
the owner of pkc.txt file is tdmscrdr and group is dba
i want to change the owner of this file from... (7 Replies)
Discussion started by: panknil
7 Replies
7. Solaris
Hi Folks,
I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error.
For example, when I am logged in as 'webadmin', I have the following file:
... (4 Replies)
Discussion started by: brizrobbo
4 Replies
8. Shell Programming and Scripting
i want to find what are the files having owner as 'palani' my entire filesystem ( sub directories )
and needs to change the owner ( chown ) to 'raju'.
Can anyone help on this to write a shell script.
Thanks in advance. (3 Replies)
Discussion started by: senthil_is
3 Replies
9. Shell Programming and Scripting
How to change the owner ship of the soft link
lrwxrwxrwx 1 root root 4 Jun 29 16:27 soft_test -> test
I need to change the above owner ship to httpd:httpd
Whats the shell command i need to use for it :) (2 Replies)
Discussion started by: kalpeer
2 Replies
10. Solaris
i need to do the following operations in solaris 10:
1.change owner and group owner for files which are not owned by the current user and user group
2.to can delete files in the /tmp directory which are not of the current user
3. allow to a standard user the deletion of files in the /tmp... (1 Reply)
Discussion started by: sirmark
1 Replies
LEARN ABOUT PLAN9
pts_chown
PTS_CHOWN(1) AFS Command Reference PTS_CHOWN(1)
NAME
pts_chown - Changes the owner of a Protection Database entry
SYNOPSIS
pts chown -name <group name> -owner <new owner>
[-cell <cell name>] [-noauth] [-localauth] [-force] [-help]
pts cho -na <group name> -o <new owner>
[-c <cell name>] [-no] [-l] [-f] [-h]
DESCRIPTION
The pts chown command designates the user or group named by the -owner argument as the owner of the group named by the -name argument, and
records the new owner in the owner field of the group's Protection Database entry.
In the case of regular groups, this command automatically changes the group name's owner prefix (the part of the group name before the
colon) to match the new owner. If the new owner is itself a group, then only its owner prefix, not its complete name, becomes the owner
prefix in the new name. The change to the owner prefix does not propagate to any groups owned by the group, however. To make the owner
prefix of such group-owned groups reflect the new owning group, use the pts rename command.
It is not possible to change a user or machine entry's owner from the default set at creation time, the system:administrators group.
CAUTIONS
While designating a machine as a group's owner does not cause an error, it is not recommended. The Protection Server does not extend the
usual privileges of group ownership to users logged onto the machine.
OPTIONS
-name <group name>
Specifies the current name of the group to which to assign a new owner.
-owner <new owner>
Names the user or group to become the group's owner.
-cell <cell name>
Names the cell in which to run the command. For more details, see pts(1).
-force
Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the
first error.
-help
Prints the online help for this command. All other valid options are ignored.
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the -cell or
-noauth options. For more details, see pts(1).
-noauth
Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1).
EXAMPLES
The following example changes the owner of the group "terry:friends" from the user "terry" to the user "pat". A side effect is that the
group name changes to "pat:friends".
% pts chown -name terry:friends -owner pat
The following example changes the owner of the group "terry:friends" from the user "terry" to the group "pat:buddies". A side effect is
that the group name changes to "pat:friends".
% pts chown -name terry:friends -owner pat:buddies
PRIVILEGE REQUIRED
The issuer must belong to the system:administrators group or currently own the group.
SEE ALSO
pts(1), pts_rename(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2014-04-08 PTS_CHOWN(1)