Changeset 1021

Show
Ignore:
Timestamp:
02/09/06 17:29:55 (3 years ago)
Author:
tushar
Message:

Update Hint: execute-session-scripts-using-kdm-and-pam

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/execute-session-scripts-using-kdm-and-pam.txt

    r1015 r1021  
    11AUTHOR: Stef Bon <stef at bononline dot nl> 
    22 
    3 DATE: 2006-01-15 
     3DATE: 2006-01-30 
    44 
    55LICENSE: GNU Free Documentation License Version 1.2 
     
    2525I use PAM and a module called pam_script to store the credentials provided at 
    2626login (the username and the password!!) for authentication against SMB servers, when  
    27 mounting shares
     27mounting shares or browsing the network with fusesmb
    2828This looks a little bit like Single Sign On, but it isn't!! The credentials are stored in  
    29 a subdirectory of the homedir (~/.cifs/mount.cifs.conf), with enough security at runtime. 
     29a subdirectory of the homedir (~/.cifs/mount.cifs.conf and ~/.smb/fusesmb.conf), with enough security at runtime. 
    3030But somebody can still find them being root, or with a LiveCD. The credentials are stored 
    3131plaintext, no encryption!! 
     
    48482.2 Adjusting pam configuration 
    49492.3 Creating the onauth script 
     503. TODO and suggestions 
    5051 
    5152 
     
    107108The files in these directories must be accessible for every ordinary user:  
    108109therefore the permissions are 755.  
    109 Al scripts in these directories should have the same permissions: 755. 
     110All scripts in these directories should have the same permissions: 755. 
    110111 
    111112Every user should be able to execute the script, but only root is able to modify  
     
    253254they inherit the faults. 'w' does some extra checking, which makes it more  
    254255usable.  
     256 
    255257Other pammodules, like pam_mount, have other ways to keep track of the amount of logins  
    256258per user. With pam_mount a seperate file (/var/run/pam_mount/$userid) is created for 
    257259this purpose. 
     260 
    258261Anyone knowing a better way to determine how many times a user is logged  
    259262in, please let me know. 
     
    269272 
    270273 
     2743. TODO and suggestions 
     275----------------------- 
     276 
     277The construction is working, but is not complete: 
     278 
     279- it does no logging and proper userfeedback (on the screen)  
     280with the hint xconsole_setup.txt (unmaintained: in hints/downloads/files) 
     281you'll find a way to launch xconsole at startup by root. Using logger and  
     282adjusting /etc/syslog.conf it's possible to write messages to it, which 
     283appear just before the splash screen of KDE comes up. 
     284 
     285 
     286- scripts are executed in the order the command 
     287 
     288for script in /etc/session.d/kdm/startup/*.sh; do 
     289 
     290works. 
     291 
     292Maybe there should be an order. Some scripts first and others later. Just like 
     293the rc script works to start and stop scripts in the /etc/rc.d structure. 
     294 
     295 
     296- I'm testing FreeNX now. It turns your desktop into a terminalserver for 
     297X11 sessions. You should test it! 
     298There is a hint for LFS already!!  
     299It does not work with KDM, so does nothing with the construction I'm using. 
     300I'll check this is a sollution. 
     301 
     302 
    271303ACKNOWLEDGEMENTS: 
    272304  * Thanks to the author of pam_script, Izak Burger, for his module and  
     
    276308[2006-01-15] 
    277309  * Initial hint. 
     310[2006-01-30] 
     311  * added chapter 3. TODO and suggestions 
     312 
     313TODO: 
     314  * add logging via xconsole