"Permissions on the password database may be too restrictive"
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Opensuse 15.3 leap plus RaspberryPi OS ,Vista and loadsa little Raspberry Pis
Posts: 57
Rep:
"Permissions on the password database may be too restrictive"
Hi Folks
When i try to su to root in a console window I get the message
"Permissions on the password database may be too restrictive"
I've been messing around trying to correct ownership problems with chown and must have screwed something somewhere. I can ctrl-alt-F1 to a text console and login as root. However if I try to use any functions via the gui needing root privilages I get the message above or "su error"
Does anyone know which file the password database is in? I'm using Opensuse10.2 64 bit version
If you are using the standard password file and not LDAP or NIS or any other authentication, you will probably want to check the permissions on /etc/shadow and /etc/passwd. I think /etc/shadow should only be readable by root (400) and /etc/passwd should be readable/writable by root, readable by root group, and readable by everyone (644).
Distribution: Opensuse 15.3 leap plus RaspberryPi OS ,Vista and loadsa little Raspberry Pis
Posts: 57
Original Poster
Rep:
I'm guessing here , its possibly a distribution thing but
400 means root only can read the shadow file (security) but cant accidentally write to it. So if root is adding a new user he has to explicitly change the file permissions to write to the file. If chmod is only usable by root when logged in locally then a hacker (assuming a remote access ) cant add to the file.
Any one know about restrictions to chmod use ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.