02-02-2013
Quote:
Originally Posted by
lutus
An oracle user created a primary dba group via the user manager in vbox
Are you sure that user:
dba exist? The error clearly states that it is an invalid user. If you are trying to change group ownership then you have to use
chgrp command instead.
Please check the link that I suggested before for further reference.
This User Gave Thanks to Yoda For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all
usermod -G Group_id login
it is replacing the existiong Secoundry groups and is adding the only group speced in usermod command
how can we retain the existing secoundry groups and add a user to a new group (6 Replies)
Discussion started by: pbsrinivas
6 Replies
2. UNIX for Advanced & Expert Users
When users login, they are directed to menu (aix script). The menu enables the user to choose an environment to work in. Each environment has a different group id. When a user chooses a menu option, I want to change his primary group to that specific environment's group id. Is this at all possible... (3 Replies)
Discussion started by: terrym
3 Replies
3. Shell Programming and Scripting
Hi All,
Is there any code in Perl which can differentiate between numeric and non-numeric input? (11 Replies)
Discussion started by: Raynon
11 Replies
4. Shell Programming and Scripting
Dear Folks :-)
I want to rsync some files between some servers and preserve files owner and group (not UID or GID), in some machines UID and GID are differents, for example:
a) In the rsync server:
# stat vbseo.php
File: `vbseo.php'
Size: 26758 Blocks: 56 IO... (1 Reply)
Discussion started by: Santi
1 Replies
5. Shell Programming and Scripting
Hi,
i have a problem with a shell script. I need to change the owner and group of a file on a remote machine.
I tried to use ssh but have some problems.
The code:
group=`ssh -t -t $1 -p 3344 "stat -c %G $cpath/FILE"`
echo " $2:$group "
echo $1
echo $cpath
ssh $1 -p 3344 "chown... (5 Replies)
Discussion started by: Linien
5 Replies
6. UNIX for Advanced & Expert Users
I´m listing the contents of a directory using the command
ls -lI get numeric uid and gid for some lines.
example:
drwxr-xr-x root root 1970-01-01 01:00 sys
-rw-r--r-- 501 20 0 2010-08-04 14:54 shutdown.bravo.rc
drwxr-x--- 501 20 ... (5 Replies)
Discussion started by: flocki
5 Replies
7. Shell Programming and Scripting
Hi,
'ps -ef' returns output of the following format
UID PID PPID C STIME TTY TIME CMD
root 17573 1 0 Sep12 tty6 00:00:00 /sbin/mingetty tty6
hpsmh 18150 14864 0 Sep12 ? 00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf
root ... (3 Replies)
Discussion started by: ysrini
3 Replies
8. UNIX for Advanced & Expert Users
Hey folks,
When a user is added to a new group, the user has to be log out and log in again to make the new group effective. Is there any system command or technique to refresh user group ID update without re-login?
I am not talking about to use "login" or "su -l" commands which can only make... (2 Replies)
Discussion started by: hce
2 Replies
9. AIX
Hi Everyone,
We are encountering the following issue on AIX 5.3. When we do ls -ltr the list displays only user id and group id instead of user name and group name.
This is happening for all users except root. Whe we do ls -ltr with root user it shows perfectly fine.
When we searched... (25 Replies)
Discussion started by: madhav.kunapa
25 Replies
10. Shell Programming and Scripting
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)
Discussion started by: Soham
5 Replies
CHGRP(1) BSD General Commands Manual CHGRP(1)
NAME
chgrp -- change group
SYNOPSIS
chgrp [-R [-H | -L | -P]] [-fhv] group file ...
DESCRIPTION
The chgrp utility sets the group ID of the file named by each file operand to the group ID specified by the group operand.
Options:
-H If the -R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal
are not followed.)
-L If the -R option is specified, all symbolic links are followed.
-P If the -R option is specified, no symbolic links are followed.
-R Change the group ID for the file hierarchies rooted in the files instead of just the files themselves.
-f The force option ignores errors, except for usage errors and doesn't query about strange modes (unless the user does not have proper
permissions).
-h If file is a symbolic link, the group of the link is changed.
-v Cause chgrp to be verbose, showing files as they are processed.
If -h is not given, unless the -H or -L option is set, chgrp on a symbolic link always succeeds and has no effect. The -H, -L and -P options
are ignored unless the -R option is specified. In addition, these options override each other and the command's actions are determined by
the last one specified.
The group operand can be either a group name from the group database, or a numeric group ID. Since it is valid to have a group name that is
numeric (and doesn't have the numeric ID that matches its name) the name lookup is always done first. Preceding the ID with a ``#'' charac-
ter will force it to be taken as a number.
The user invoking chgrp must belong to the specified group and be the owner of the file, or be the super-user.
Unless invoked by the super-user, chgrp clears the set-user-id and set-group-id bits on a file to prevent accidental or mischievous creation
of set-user-id or set-group-id programs.
The chgrp utility exits 0 on success, and >0 if an error occurs.
FILES
/etc/group Group ID file
SEE ALSO
chown(2), lchown(2), fts(3), group(5), passwd(5), symlink(7), chown(8)
STANDARDS
The chgrp utility is expected to be POSIX 1003.2 compatible.
The -v option and the use of ``#'' to force a numeric group ID are extensions to IEEE Std 1003.2 (``POSIX.2'').
BSD
September 25, 2003 BSD