11-27-2006
Help required for usermod command
Hi,
I would need to modify my machine name :
When i give "w" command, i am getting following message
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
krishnag pts/59 gunasekar 1:25pm 25:15 0.03s 0.03s -csh.
My questions is, i need to change FROM (i.e machine name): "gunasekar" to
"Gunaseelan"
Is there any command changing my machine names using usermod command?
How should i do that? Can anyone help me?
Thanks,
Guns.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to add an expiration to all of the local logins, but everytime I do the:
usermod -e <date> <login>
command, I get a error msg "usermod error <date> is not a valid expiration date. CHoose another"
I've tried 6/26/06, June 26, 2006, 26/6/06, 6/26/2006 everything I can think of.
... (1 Reply)
Discussion started by: amheck
1 Replies
2. Solaris
Hi, I put an expiration on a few id's that I want to remove now. From the man page
-e expire Specify the future date on which a login can no
longer be used; after this date, no user will be
able to access this login. This option is useful
... (0 Replies)
Discussion started by: amheck
0 Replies
3. Shell Programming and Scripting
"sudo usermod -d /home/${user1} -g $primgroup -Gn $grouplist -u $zaquid -p apple1 $user1"
What's wrong with this command? (6 Replies)
Discussion started by: syndex
6 Replies
4. Cybersecurity
Hi,
I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this.
Thanks
Vishwas (2 Replies)
Discussion started by: loggedout
2 Replies
5. Solaris
Hello,
I'm a bit confused by the usage of those two commands. I have 2 freshly installed systems and the behaviour is different from one system to another.
root@systemONE rolemod -G mygroup postgres
UX: rolemod: ERROR: Users most be modified with ``usermod''.
root@systemTWO usermod -G... (6 Replies)
Discussion started by: Tex-Twil
6 Replies
6. Shell Programming and Scripting
Hi;
Im working on HP -UX B.11.11 U 9000/800 , I come from a Linux background and i m not so good at HP UX.Here is the issue
I need to reset the password of some 100 users at one go ,on linux I used to do it.I wrote a small code in linux and it worked a charm
here is the code ,where... (2 Replies)
Discussion started by: maverick_here
2 Replies
7. AIX
Hello All,
Could you please let me know if the usermod command works in AIX? If yes, on what versions? We have a situation in which we need to change the UID of few users who have the same UID as root. We have changed it in /etc/passwd for now but want to use usermod in future. The syntax is as... (2 Replies)
Discussion started by: lovesaikrishna
2 Replies
8. UNIX and Linux Applications
On pam.conf
usermod auth required libpam_hpsec.so.1
usermod auth sufficient libpam_krb5.so.1
usermod auth required libpam_unix.so.1 try_first_pass
usermod account required libpam_hpsec.so.1
usermod account sufficient libpam_krb5.so.1
usermod account required... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
9. Red Hat
Hi, I am root user. I need to add more groups to the account. I usse the below command but no apparent result
# id
uid=0(root) gid=0(root) groups=0(root)
# usermod -a -G 302,301,303 root
# id
uid=0(root) gid=0(root) groups=0(root)
#
What can be the reason? (6 Replies)
Discussion started by: BearCheese
6 Replies
10. Solaris
i install Solaris 11.2 , Oracle Corporation SunOS 5.11 11.2 April 2015
and make 2 zones for Oracle RAC
non-global zones : rac1, rac2
in zones i create group's and user's
/usr/sbin/groupadd -g 1000 oinstall
/usr/sbin/groupadd -g 1020 asmadmin
/usr/sbin/groupadd -g 1021... (2 Replies)
Discussion started by: penchev
2 Replies
LEARN ABOUT MOJAVE
pts_rename
PTS_RENAME(1) AFS Command Reference PTS_RENAME(1)
NAME
pts_rename - Changes the name of a Protection Database entry
SYNOPSIS
pts rename -oldname <old name> -newname <new name>
[-cell <cell name>] [-noauth] [-localauth]
[-force] [-help]
pts ren -o <old name> -ne <new name> [-c <cell name>]
[-no] [-l] [-f] [-h]
DESCRIPTION
The pts rename command changes the name of the user, machine, or group entry specified by the -oldname argument to the name specified by
the -newname argument. It is not possible to change a user or machine entry's name to look like a regular group entry's name (have a colon
in it).
Members of the system:administrators group can change a regular group name into a prefix-less name and vice versa. When changing a prefix-
less group name into a regular group name or a regular group name to another regular group name, the owner field of the new name (the part
before the colon) must correctly reflect the group's owner.
Changing a regular group's owner with the pts chown command automatically changes the owner field (the part before the colon) of the
group's name, but does not change the owner field of any groups owned by the group. Use this command to rename those groups to a form that
accurately reflects their ownership.
CAUTIONS
By convention, many aspects of an AFS user account have the same name as the user's Protection Database entry, including the Authentication
Database entry, volume, and mount point. When using this command to change a user name, also change the names of all related entities to
maintain consistency. For instructions, see the chapter on user accounts in the OpenAFS Administration Guide.
OPTIONS
-oldname <old name>
Specifies the current full name of the entry.
-newname <new name>
Specifies the new full name for the entry. For regular groups, the owner field (the part before the colon) of the new name must reflect
the actual ownership of the group.
-cell <cell name>
Names the cell in which to run the command. For more details, see pts(1).
-force
Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the
first error.
-help
Prints the online help for this command. All other valid options are ignored.
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the -cell or
-noauth options. For more details, see pts(1).
-noauth
Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1).
EXAMPLES
The following example changes the name of the group staff, owned by the privileged user "admin", to "admin:staff":
% pts rename -oldname staff -newname admin:staff
The following example changes the name of the group "admin:finance" to the group "finance". The issuer must belong to the
system:administrators group.
% pts rename -oldname admin:finance -newname finance
PRIVILEGE REQUIRED
To change a regular group name to a prefix-less name or vice versa, or to change a user or machine entry's name, the issuer must belong to
the system:administrators group.
To change a group name to a new name of the same type (regular or prefix-less), the issuer must own the group or belong to the
system:administrators group.
SEE ALSO
pts(1), pts_chown(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2014-04-08 PTS_RENAME(1)