Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: passwd command

passwd command 11 years 8 months ago #7578

  • LooseCannon
  • LooseCannon's Avatar
  • Offline
  • Frequent Member
  • Posts: 64
  • Karma: 0
I'm wondering if anyone has come across a 'permission denied' error when attempting to use the passwd command. I do a 'passwd <username>' and then it asks me to put the password in and then confirm it as is usual, but after I enter it the second time I get this permission denied error. I am assuming it is trying to write to the /etc/shadow file but I fail to see how it wouldn't have permission to do so. Also, this is for a new user I created, but I even tried it for my root account and I still got the error. This is on Solaris 10 by the way. Any help would be appreciated.
The administrator has disabled public write access.

Re: passwd command 11 years 8 months ago #7579

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Posts: 613
  • Karma: 0
hmm password control procedures are a bit more strict in solaris, if you check passwd's man page (man 1 passwd), it mentions some requirements for a change to take place. Perhaps that's the problem.
The administrator has disabled public write access.

Re: passwd command 11 years 8 months ago #7583

  • LooseCannon
  • LooseCannon's Avatar
  • Offline
  • Frequent Member
  • Posts: 64
  • Karma: 0
Thanks for the advice. I forgot to install the man pages with Solaris so I finally found the manual on the sun.com page and it turned out I had to edit the /etc/nsswitch.conf file and alter the "passwd: files nis" line to: "passwd: files" and that did the trick. That's twice now I've had to alter this file. Originally I couldn't resolve domain names until I made a change to this file as well. I'm too used to Linux :roll:
The administrator has disabled public write access.
Time to create page: 0.072 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup