1836903 Members
2202 Online
110111 Solutions
New Discussion

CDE Login Procedure

 
Derek Whigham_2
Occasional Advisor

CDE Login Procedure

I want CDE to run passwd in /usr/sbin/passed instead of /usr/bin/passwd when a user is prompted. I want to test the group that they are members of and carry out some other actions. I have done this for shell logins by setting the PATH the have /usr/sbin at the start hence /usr/sbin/passwd is called but cannot get the CDE login to do this as it always goes to /usr/bin/passwd
2 REPLIES 2
Duncan Beattie
Occasional Advisor

Re: CDE Login Procedure

You may want to consider using Pluggable Authentication Modules to customise login procedures.

http://www.jmu.edu/computing/info-security/engineering/proj/uaea/parts/pam.shtml

Sridhar Bhaskarla
Honored Contributor

Re: CDE Login Procedure

Hi,

I don't think there is a passwd program in /usr/sbin/ directory. There is on in /sbin/passwd but that's not meant for ordinary users.

Secondly, it is better to set the path in /etc/PATH if you want to make the path global. But it is advised to keep it as minimal as possible and /usr/sbin and /sbin shouldn't be in there as the users other than root wouldn't need to run the commands from them.

To make local .profile into effect, they need to have a file called .Xdefaults with the following line

*LoginShell: True

They will have to restart their workspace manager or relogin to CDE.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try