Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Chown... cannot get the login group of a numeric UID Post 302765555 by lutus on Saturday 2nd of February 2013 05:23:55 PM
Old 02-02-2013
Chown... cannot get the login group of a numeric UID

How do I resolve the below error. I want to change the ownership on sf_Temp file from media to dba.
Code:
[root@localhost media]# grep ^media /etc/group
 
[root@localhost media]# ls -l
drwxrwx--- 1 root vboxsf 0 Feb 1 16:10 sf_Temp
drwxrwx--- 2 root vboxsf 4096 Jan 31 17:59 sf_VBoxShared
dr-xr-xr-x 6 oracle root 2048 Dec 19 09:20 VBOXADDITIONS_4.2.6_82870
total 10

root@localhost media]# chown dba: vboxsf sf_Temp
chown: `dba:': cannot get the login group of a numeric UID


Last edited by fpmurphy; 02-02-2013 at 06:45 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

usermod -G and Group id login replacing existing groups

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

Change a users primary group after login

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

Perl code to differentiate numeric and non-numeric input

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

Rsync - Preserve owner/group with different UID/GID

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

chown remotely via ssh / invalid group

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

Numeric uid and gid in ls -l command

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

Ps - list where UID is numeric or name and for current user

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

Can adding to a new group be effective in current login environment without re-login?

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

UID & GID instead of user name and group name

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

List files whose owner or group is numeric

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
mkcd(1M)						  System Administration Commands						  mkcd(1M)

NAME
mkcd - create bootable Solaris ISO image SYNOPSIS
/usr/bin/mkcd -v [-l label] media-root iso DESCRIPTION
The mkcd utility takes media-root (the root of an on-disk Solaris install media) as input and creates a bootable Solaris ISO image in the file iso, using mkisofs(8). The file can then be burned onto a CD/DVD with utilities such as cdrw(1) or cdrecord(1). (Neither mkisofs(8) nor cdrecord(1) are SunOS man pages.) Caution - The directory tree media-root must contain the file boot/grub/stage2_eltorito, which will be written to the media boot sectors. This file will be modified with some boot information, thus it must be writable. If necessary, first save a copy prior to running this utility. OPTIONS
The following options are supported: -l label Sets label as the label/volume name of the ISO image. -v Verbose. Multiple -v options increase verbosity. OPERANDS
The following operands are supported: media-root Top-level directory of an on-disk Solaris install media. iso Name of the output file which will contain the resulting ISO image. EXAMPLES
Example 1 Creating an ISO Image and Burning a CD/DVD The following commands create an ISO image from the content of s10u1 and burn the image to a CD/DVD. # /usr/bin/mkcd s10u1 s10u1.iso # /usr/bin/cdrw -i s10u1.iso ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
cdrw(1), attributes(5) mkisofs(8), (/usr/share/man/man8/mkisofs.8), in the SUNWfsman package (not a SunOS man page) SunOS 5.11 25 Jul 2008 mkcd(1M)
All times are GMT -4. The time now is 08:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy