- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: changing UID of user sshd tftp and hpsmh
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
тАО11-14-2010 09:47 PM
тАО11-14-2010 09:47 PM
Re: changing UID of user sshd tftp and hpsmh
It isn't documented that usermod(1m) performs the chown(1) operation, so I would assume it doesn't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 10:42 PM
тАО11-14-2010 10:42 PM
Re: changing UID of user sshd tftp and hpsmh
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 05:47 AM
тАО11-15-2010 05:47 AM
Re: changing UID of user sshd tftp and hpsmh
> Dennis: If you want performance, you should use xargs
Yes, of course. In fact, we can eliminate the intermediate file and its attendant I/O and do:
# find / -user 100 -print|while read NAME;do echo ${NAME};done|xargs -t chown 200
As Dennis inferred, using the '-t' option with 'xargs' gives you a trace of the command and its arguments that are being executed.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 12:11 PM
тАО11-15-2010 12:11 PM
Re: changing UID of user sshd tftp and hpsmh
You may want that file for your records, or to do the chmod in chunks.
>using the '-t' option with 'xargs' gives you a trace of the command
Oops, that should have been -tn80 (or an even larger number).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2011 08:28 PM
тАО10-01-2011 08:28 PM
Re: changing UID of user sshd tftp and hpsmh
># find / -user 100 -print | while read NAME; do echo ${NAME}; done | xargs -t chown 200
Hmm. If you eliminate the file, there is no need for that while and xargs:
fine / -user 100 -exec chown 200 {} +
- « Previous
-
- 1
- 2
- Next »