mv warning set owner/group: Operation not permitted
Hi,
Thanks for looking into this.
I am running into below situation in free BSD.
I have a file in /tmp/sample.txt with owner as 'xyz' and group as 'wheel'
I am moving it to my home dir/newsample.txt whihc has owner 'xyz', but group 'someother' with below command, getting warning, but it is moving file correctly.
Please suggest.
Thanks,
Ramana
Last edited by Franklin52; 12-30-2011 at 09:01 AM..
Reason: Please use code tags for data and code samples, thank you
I'm kicking Unix questions out like Bruce Lee. So I'm copying a directory of files, in each directory I inevitablly get this:
I get that for usually the same set of directories/files in each folder. Is there a way to override this when copying files? (4 Replies)
Hello,
I am trying to port some testtools we wrote from solaris to redhat linux(AMD64). If I link dynamic, set the correct LD_LIBRARY_PATH, everything runs fine.
If I try to link static, the pthread_create returns "operation not permitted" (error code 1).
Does anybody have an idea where to... (1 Reply)
Hi - I have a script (.ksh) which has been transferred from one Linux box to another. Basically it untars a file a deploys the code to the relevent directories. It is failing with ' Cannot utime: Operation not permitted'
When I run the command by hand it *is* doing the untar to the directories... (1 Reply)
How to set the name of the group and the owner while creation of the file?
-rwxrwxr-x 1 root sys 1202 Dec 5 2002 abc.awk
like here i need to set the name of root and sys to xxx xxx
Any help is appreciated.
Thanks. (2 Replies)
Hi i have written one backup script in linux workstation.The backup script will do zipping files and moved to the backup directory(i,e /net/ts-bcn/sb_backup/sand).
#So while moving zipped files to the backup directory i am getting some error like this
error:mv:failed to preserve ownership... (2 Replies)
Hi all,
iam unable to mount exported directory hari on AIX 5.3,
which was in RedHat Linux As4.
Linux-server
AIX -client
I am facing errors of
bash-3.00# mount -n linuxas4 /hari /hari
mount: 1831-008 giving up on:
linuxas4:/hari
vmount: Operation not permitted.
Pl any body... (1 Reply)
Hi all,
We have some files are under 744 permissions and the the owner is say owner1 and group1.
Now we have another user owner2 of group2, owner2 can remove files of the owner1 and the permission of those files are 744, unix admin told us he did some config at his side so we can do that.
... (14 Replies)
Hi Expert,
I am trying to change ownership of one file to another user that is exist in the system but getting operation not permitted error
what could be the correct way?
# ls -lh .Xauthority_ori
-rw------- 1 maxim atlas 2.8K Jul 27 17:18 .Xauthority_ori
# id -a
uid=0(root)... (8 Replies)
Hello,
Since over one week, I have been consistently searching for a solution to my mysql installation errors. I surfed many sites on google to get rid of the issue. Now google gives me all the same results, I tested many of those solutions provided by... Now I am pulling hair
I am under... (12 Replies)
Discussion started by: baris35
12 Replies
LEARN ABOUT SUNOS
chown
chown(1B) SunOS/BSD Compatibility Package Commands chown(1B)NAME
chown - change owner
SYNOPSIS
/usr/ucb/chown [-fR] owner[.group] filename...
DESCRIPTION
chown changes the owner of the filenames to owner. The owner can be either a decimal user ID (UID) or a login name found in the password
file. An optional group can also be specified. The group can be either a decimal group ID (GID) or a group name found in the GID file.
In the default case, only the super-user of the machine where the file is physically located can change the owner. The system configura-
tion option {_POSIX_CHOWN_RESTRICTED} and the privileges PRIV_FILE_CHOWN and PRIV_FILE_CHOWN_SELF also affect who can change the ownership
of a file. See chown(2) and privileges(5).
OPTIONS
The following options are supported:
-f Do not report errors.
-R Recursively descend into directories setting the ownership of all files in each directory encountered. When symbolic links are
encountered, their ownership is changed, but they are not traversed.
USAGE
See largefile(5) for the description of the behavior of chown when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
FILES
/etc/passwd Password file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO chgrp(1), chown(2), group(4), passwd(4), attributes(5), largefile(5), privileges(5)SunOS 5.10 21 Jun 2004 chown(1B)