1820587 Members
2165 Online
109626 Solutions
New Discussion юеВ

Re: Deactivate User

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

Deactivate User

When you select "deactivate" from the sam user menu, and select " leave files in place", what actually happens? Because, after deactivating a user, change the password, then try to log in as that user, I am successful. I thought I would see something like "user id has been suspended, unsuccessful".
UNIX IS GOOD
5 REPLIES 5
T G Manikandan
Honored Contributor
Solution

Re: Deactivate User

you can lock the user using

#passwd -l


Thanks
Pete Randall
Outstanding Contributor

Re: Deactivate User

Robert,

SAM just nulls out the password, so when you change the password, you're defeating SAM's efforts.

Pete

Pete
Rainer von Bongartz
Honored Contributor

Re: Deactivate User

When you deactivate a user SAM set an '*' into the password file of /etc/passwd to indicate the user is suspended

When changing the password you overwrite this setting and the user is activated again.

Regards
rainer


He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Fragon
Trusted Contributor

Re: Deactivate User

BTW, would anyone tell me , if I translate my system to Trusted system, what happens then?
Thanks!

-Gerald-
Arockia Jegan
Trusted Contributor

Re: Deactivate User

Robert,

I'm pretty sure it's happening on non-trusted system. In the non trusted system changing the password will reactivate the deactivated user account. BUT in the trusted system it won't happen.