- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- execution of passwd command in users profile
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
Forums
Discussions
Discussions
Discussions
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
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
02-19-2009 10:35 AM
02-19-2009 10:35 AM
execution of passwd command in users profile
On my HP-UX machine details of machine
"HP-UX ELX-LPU-IVM1 B.11.23 U ia64 0484773515 unlimited-user license"
I have my user id (username :test1) created. Now once I login I want to run the '$passwd' command and change my password but it say "sh: passwd: Execute permission denied."
On my other system it works. How do I solve this.
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2009 10:50 AM
02-19-2009 10:50 AM
Re: execution of passwd command in users profile
And for that matter, check that you're actually getting the /usr/bin/passwd: whence passwd.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2009 04:13 PM
02-19-2009 04:13 PM
Re: execution of passwd command in users profile
It seems doing it manually would be best. Possibly echoing a reminder at the end of .profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2009 04:21 PM
02-19-2009 04:21 PM
Re: execution of passwd command in users profile
Did you really mean to say $passwd? In standard shells, $passwd will not run the passwd command. Instead, it will see $passwd as a variable name and replace $passwd with the current contents of the passwd variable (whatever that might be).
If you want to run any command from .profile (or any script), simply use the command's name, or better yet, specify the full pathanme as in:
/usr/bin/passwd
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2009 02:15 AM
02-20-2009 02:15 AM
Re: execution of passwd command in users profile
Thanks.. Its done..
I have given this permissions yesterday night and it worked.
output atached.
Many Thanks Guys..don't know how it work but it works.
Cheers
Ryan