- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using usermod from doing ssh from master serve...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2009 09:47 PM
тАО12-29-2009 09:47 PM
I am trying to change GECOS field in several servers and several users account.
This is what I a doing.
ssh roxyio usermod -c Rodnry S. Bryant,134234,, pdstest
and I get this error.
User name must be specified
Usage: usermod [-u
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2009 10:16 PM
тАО12-29-2009 10:16 PM
Re: Using usermod from doing ssh from master server
The significant difference is eliminating the
spaces in the argument. Try quotation?
-c 'comment with spaces'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2009 11:51 PM
тАО12-29-2009 11:51 PM
Re: Using usermod from doing ssh from master server
# ssh roxyio "usermod -c Rodnry S. Bryant,134234,, pdstest"
Rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2009 05:26 AM
тАО12-30-2009 05:26 AM
Re: Using usermod from doing ssh from master server
# ssh roxyio usermod -c 'Rodnry S. Bryant,134234,,' pdstest
Quote the comment section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2009 12:56 PM
тАО12-30-2009 12:56 PM
Re: Using usermod from doing ssh from master server
I tried the suggestion and still getting the same error.
Any idea.
ssh roxyio usermod -c 'Rodnry-S.- Bryant,134234,,' pdstest
ssh roxyio "usermod -c Rodnry-S.- Bryant,134234,, pdstest"
User name must be specified
Usage: usermod [-u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2009 01:05 PM
тАО12-30-2009 01:05 PM
Re: Using usermod from doing ssh from master server
Sorry about that.
Regards,
MP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2009 02:14 PM
тАО12-30-2009 02:14 PM
SolutionSome of each? The shell on the local system
will eat one set of quotation marks, but you
really need them on the remote system.
Perhaps something more like this?:
ssh roxyio "usermod -c 'Rodnry S. Bryant,134234,,' pdstest"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2010 11:37 AM
тАО01-04-2010 11:37 AM
Re: Using usermod from doing ssh from master server
Thanks for the reply, the tip you gave me it worked but the user was in use so I still land up doing manually on few servers.
But it did help me out.
Thanks for all your help.
Regards,
MP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2010 12:27 PM
тАО01-04-2010 12:27 PM