Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm running a small network of 20 PC's (slackware), I had previously used NIS and can't really be bothered with ldap it's a bit of hassle. I do not need a centralised database just a login auth system.
I wanted to run this by you.
On the server I make a folder called /sec and symlink passwd, group and shadow into it.
I export this via nfs.
On the workstation I create a folder /sec, move the passwd, group and shadow file into it and then symlink them back into the /etc folder.
On bootup, the rc.local mounts server /sec over the top of workstation /sec. If it fails it falls back.
Any issue with this approach?
I wasn't sure if I could just mount /sec on the workstation and then temporarily symlink group,passwd,shadow over the top of the /etc/shadow etc.
So you have one common root password, so if one person finds that password on one, they instantly have it on all. What's more they could also instantly change every password for every account in the entire environment with nothing more than local machine access? If you're saying there are separate files for every machine then how do you prevent all files being accessible on all systems? If you're putting in per system config then that's possibly more work than doing it properly in the first place. Your passwords should not be being sent out to a remote site. That's one reason NIS itself is awful for authentication. If you take the password and give it out to a client then they have the password to do what they want with. Central authentication, e.g. ldap at a base level, means that the password never leaves the central machine and is so much more secure.
Security for this small network is basic, there is no major concern which is why I'm taking this approach.
I hard-linked the /etc/passwd, group, gshadow and shadow into /sec on the server and exported it read-only.
On the workstation I moved the same files into /sec, symlinked them into /etc and then mount the server /sec over the top.
This worked and I can login as root using server password. Also, the user accounts show up in gdm, however user passwords fail (even though they work on the server). Am I missing a file other than those four?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.