09-24-2007
Quote:
Originally Posted by
MSHETTY
sm860 IS the owner of the files below,but yet sm860 cannot change the ownership to bpt3a1.Please let me know why ?
Because it would be a security violation for the userID, sm860, to change the ownership of a file to another user, like bpt3a1.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I change ownership of a directory and all of it's files without changing permissions? (1 Reply)
Discussion started by: mborin
1 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
Hi Group,
Can anyone assist me with this?
I am on AIX 5.2 ML06. I create the user and assign a passwd. But I do not want the user to change the passwd at all. I like him/her to use the passwd that I have set for him/her. Any ideas would be highly appreciated!!!
Thanks. (3 Replies)
Discussion started by: brookingsd
3 Replies
4. 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
5. Shell Programming and Scripting
Good afternoon,
Sir's, i owuld like to search for some advice, whats the fastest way to change multiple files ownership. For HostnameA will be their basis, for what ever files and permissions that hostnameA has, it should replicate the permissions and ownership to hostname B.
$hostname... (1 Reply)
Discussion started by: invinzin21
1 Replies
6. 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
7. Shell Programming and Scripting
i have a directory in which i have Multiple files:
Following are they====
-rw-r--r-- 1 root root 886 Jan 21 16:38 trunkn.xsd
-rw-r--r-- 1 root root 244 Jan 21 16:38 trunknameCache.xml
-rw-r--r-- 1 root root 1240 Jan 21 16:38 subscribercache.xsd
-rw-r--r-- 1 root ... (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies
8. UNIX for Advanced & Expert Users
Folks,
I have a problem with a particular file, that seems to have some kind of lock on it, that takes around 1 hour approx to timeout. I have used lsof and nothing has an open file handle on it, yet I cannot open it. My user/group owns the file and I can create edit/delete files in... (6 Replies)
Discussion started by: scottrus
6 Replies
9. Shell Programming and Scripting
Hi,
I have several directories under an upload directory where differnt users upload their files (with exxactly the same file name every week) using their own user ids.
There is a requirement that once any user uploads the file I have to clean that file and remove extra whitespaces and... (3 Replies)
Discussion started by: vbhonde11
3 Replies
10. UNIX for Dummies Questions & Answers
I want to change the ownership of a directory ONLY.
my id
id1 owns the files under the /mypath/bin
but /mypath/bin is owned by id2
If i log into id2
I can't do
chown id1 /mypath/bin (1 Reply)
Discussion started by: klarue
1 Replies
CHOWN(1) FSF CHOWN(1)
NAME
chown - change file owner and group
SYNOPSIS
chown [OPTION]... OWNER[:[GROUP]] FILE...
chown [OPTION]... :GROUP FILE...
chown [OPTION]... --reference=RFILE FILE...
DESCRIPTION
This manual page documents the GNU version of chown. chown changes the user and/or group ownership of each given file, according to its
first non-option argument, which is interpreted as follows. If only a user name (or numeric user ID) is given, that user is made the owner
of each given file, and the files' group is not changed. If the user name is followed by a colon or dot and a group name (or numeric group
ID), with no spaces between them, the group ownership of the files is changed as well. If a colon or dot but no group name follows the
user name, that user is made the owner of the files and the group of the files is changed to that user's login group. If the colon or dot
and group are given, but the user name is omitted, only the group of the files is changed; in this case, chown performs the same function
as chgrp.
OPTIONS
Change the owner and/or group of each FILE to OWNER and/or GROUP.
-c, --changes
like verbose but report only when a change is made
--dereference
affect the referent of each symbolic link, rather than the symbolic link itself
-h, --no-dereference
affect symbolic links instead of any referenced file (available only on systems that can change the ownership of a symlink)
--from=CURRENT_OWNER:CURRENT_GROUP
change the owner and/or group of each file only if its current owner and/or group match those specified here. Either may be omit-
ted, in which case a match is not required for the omitted attribute.
-f, --silent, --quiet
suppress most error messages
--reference=RFILE
use RFILE's owner and group rather than the specified OWNER:GROUP values
-R, --recursive
operate on files and directories recursively
-v, --verbose
output a diagnostic for every file processed
--help display this help and exit
--version
output version information and exit
Owner is unchanged if missing. Group is unchanged if missing, but changed to login group if implied by a `:'. OWNER and GROUP may be
numeric as well as symbolic.
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.
COPYRIGHT
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
The full documentation for chown is maintained as a Texinfo manual. If the info and chown programs are properly installed at your site,
the command
info chown
should give you access to the complete manual.
chown (coreutils) 4.5.3 February 2003 CHOWN(1)