- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- passwd: execute permission denied
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
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
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-15-2001 05:34 PM
тАО11-15-2001 05:34 PM
checked /usr/sbin/passwd permission:
-r-sr-xr-x 5 root bin 49152 Apr 10 1998 /usr/bin/passwd
checked /etc/passwd:
2 -r--r--r-- 1 root sys 857 Nov 15 19:46 /etc/passwd
where do i go next?
THanks adv...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2001 05:36 PM
тАО11-15-2001 05:36 PM
Re: passwd: execute permission denied
no restrictions on user accounts (sam)
regular users [non root] gets the above error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2001 05:43 PM
тАО11-15-2001 05:43 PM
Solutioncp -p the file from sbin into bin, and dont forget to set the sticky bit.
Ordinary users should be able to run /usr/sbin/passwd without ant problem.
HTH.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2001 05:58 PM
тАО11-15-2001 05:58 PM
Re: passwd: execute permission denied
#cp -p /usr/sbin/passwd /usr/bin
#chmod u+s /usr/bin/passwd
At the end of which, the permissions on the file should be -r-sr-xr-x

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2001 06:00 PM
тАО11-15-2001 06:00 PM
Re: passwd: execute permission denied
how did you figure out that it was messed up?
also how do i sopy the file with the sticky bit?
is it just a simple cp file1 file2?
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2001 06:05 PM
тАО11-15-2001 06:05 PM
Re: passwd: execute permission denied
The timestamp on the /usr/bin/passwd file is 15 Nov (yesterday), and you report a problem today.
Also, the file size (857) seems too small to be a valid passwd file.
Cheers,
Deepak.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2001 08:58 PM
тАО11-15-2001 08:58 PM
Re: passwd: execute permission denied
The permissions were copied as using the -p option of 'cp' Have a look at the man page or below
-Michael
-p (preserve permissions) Causes cp to preserve in the copy as
many of the modification time, access time, file mode, user
ID, and group ID as allowed by permissions.