LFC-CHOWN(1) LFC User Commands LFC-CHOWN(1)NAME
lfc-chown - change owner and group of a LFC directory/file in the name server
SYNOPSIS
lfc-chown [-h] [-R] owner[:group] path...
lfc-chown [-h] [-R] :group path...
DESCRIPTION
lfc-chown sets the owner and/or the group of a LFC directory/file in the name server to the values in owner and group respectively.
To change the owner ID, if the group ID does not change and if the caller and the new owner ID belong to that group, GRP_ADMIN privilege is
needed, otherwise the caller must have ADMIN privilege in the Cupv database. To change the group ID, the effective user ID of the process
must match the owner ID of the file and the new group must be in the list of groups the caller belong to or the caller must have ADMIN
privilege in the Cupv database.
owner is either a valid username or a valid numeric ID.
group is either a valid group name or a valid numeric ID.
path specifies the LFC pathname. If path does not start with /, it is prefixed by the content of the LFC_HOME environment variable.
OPTIONS
The following options are supported:
-h If path is a symbolic link, changes the ownership of the link itself.
-R Recursive mode.
EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed.
SEE ALSO Castor_limits(4), lfc_chown(3), Cupvlist(1)AUTHOR
LCG Grid Deployment Team
LFC $Date: 2007/01/15 08:05:17 $ LFC-CHOWN(1)
Check Out this Related Man Page
LFC-MKDIR(1) LFC User Commands LFC-MKDIR(1)NAME
lfc-mkdir - make LFC directory in the name server
SYNOPSIS
lfc-mkdir [-m mode] [-p] path...
DESCRIPTION
lfc-mkdir creates the specified LFC directories in the name server.
This requires write permission in the parent directory. The owner ID and group ID of the new directories are set to the requestor's real
user ID and group ID, respectively.
path specifies the LFC pathname. If path does not start with /, it is prefixed by the content of the LFC_HOME environment variable.
The lfc-mkdir command has the following options:
-m specifies the mode to be used. Default mode is 777.
-p creates all the non-existing parent directories first. The mode set for the created intermediate directories is the logical differ-
ence between 0777 and the user umask but at least 0300.
EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed.
SEE ALSO Castor_limits(4), lfc_chmod(3), lfc_mkdir(3), lfc_umask(3)AUTHOR
LCG Grid Deployment Team
LFC $Date: 2001/10/04 12:12:54 $ LFC-MKDIR(1)
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)
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)
Hi unix gurus,
I am facing problem with chown command. I am not able to change the owner of any file in my home. It gives error "not owner", though I own the file(as ls shows). What could be the reason? Is it possible that usage chown can be disabled for users.
$
$ ls -l
total 2... (10 Replies)
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)
Seems simple but I am having difficulty with this one: I am trying to write a single command line argument (which will be a path) - the program should print out the owner of the path.
I can not get anything I write to run.
Please help. (5 Replies)
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)
I work in an Active Directory environment, and we just hired a new person. However, the manager spellt her name wrong, so I have to set up her user account all over again.
Apple has this solution in their knowledge base (a bunch of other steps are involved that aren't pertinent here):
chown... (8 Replies)
Hi all,
i've an Solaris 10 installation. The owner and permissions for /tmp is:
# ls -l /tmp
# rwxr-xr-x root root /tmp
They should be (i've looked at a clean installation):
# rwxrwxrwt root sys /tmp
I've tried to change the permissons after booting from cd and mounting the root... (10 Replies)
hi,
I'm connecting to a web server with ftp protocol and I would like to change some folders and files owner. I tried chown but it is not available.
I typed "help" and this is the list I got. Is possible that the chown command is not installed on the server ? Or I don't have permissions ?... (8 Replies)
hai,
I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc".
(here "oasitqtc" is the owner of the directory or sub directory.)
i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
If I have to identify the group owner of an AIX group, what is the command to be used. Example: there is an mqadm group, how do I find the owner of this group?
Please help. (6 Replies)
I want to add a condition is my find command to include files/sub-directory whose owner or group is all numeric number.
My current find command is
find . \( -user root -o -user soham\) -type f -exec ls -l {} \; 2>&1
---------- Post updated at 10:20 AM ---------- Previous update was at... (5 Replies)