Date: Wed, 20 Jan 1999 08:44:57 -0800 (PST) From: Mike Meyer <mwm@phone.net> To: freebsd-questions@FreeBSD.ORG Subject: Re: howto prevent password from been changed? Message-ID: <Pine.BSF.4.05.9901200827080.2948-100000@guru.phone.net> In-Reply-To: <36A5D54D.234631CB@mx.cei.gov.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
Ok, to solve the problem as stated: 1) Move passwd to passswd.real. 2) Make "passwd" a shell script that checks to see if the userid is one of the ones you don't want changing the password, and then either prints a "Don't do this" message, or runs passwd.real. On the other hand, given 7 accounts with such obvious passwords and not wanting people to change them, you could probably just create a single unpassworded "guest" account, and let everyone use that. It wouldn't make much difference in the security of the system. <mike On Wed, 20 Jan 1999, Peihan Wang wrote: > Date: Wed, 20 Jan 1999 21:08:29 +0800 > From: Peihan Wang <peihanw@mx.cei.gov.cn> > To: freebsd-questions@FreeBSD.ORG > Subject: howto prevent password from been changed? > > I have a 486/66 with FreeBSD 2.2.6 installed. It has > a 8 port serial card connects several old PCs running > terminal emulation program for DOS. > > I added 8 new users named stud1 -- stud8. Their > passwords are same as their login names. Each user can > run c/c++ compiler, perl5, gdb and common commands. > They all belong to group student. > > But I do not want them to execute passwd for that will > cause extra sys-admin tasks. > > The default permission of passwd is -r-sr-xr-x. > Change permission or hide passwd is unwise for other > users will feel discomfort. > > Any suggestions? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901200827080.2948-100000>