[K12OSN] PostSession script, rm command and user directories

Peter Scheie petre at maltzen.net
Mon Dec 18 19:28:16 UTC 2006


Wait a minute!  Are you trying to clear/remove the home directory for 
the user ID terminal9 while terminal9 is still logged in?  If so, you 
can't do that.  You'd have to kill all of terminal9's PIDs first, then 
remove the files.

Petre

Meelis Mihhailov wrote:
> Hi Burke !
> 
> while logged in with the user, did a lsof | grep /home/terminal9 and it 
> showed no files or folders with the names that were created.
> *************************************************************************************** 
> 
> gnome-ses 28067 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> gnome-ses 28067 terminal9  mem       REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> gnome-ses 28067 terminal9   17r      REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> lbussd    28100 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> lbussd    28100 terminal9    1w      REG        9,1        0   10848294 
> /home/terminal9/.lbussd.out
> lbussd    28100 terminal9    4r     FIFO        9,1            10848296 
> /home/terminal9/.lbus_fifo
> gnome-key 28168 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> metacity  28180 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> metacity  28180 terminal9  mem       REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> metacity  28180 terminal9   14r      REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> gnome-pan 28186 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> gnome-pan 28186 terminal9  mem       REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> gnome-pan 28186 terminal9   16r      REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> nautilus  28188 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> nautilus  28188 terminal9  mem       REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> nautilus  28188 terminal9   23r      REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> eggcups   28199 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> nm-applet 28211 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> pam-panel 28213 terminal9  cwd       DIR        9,1     4096   10848282 
> /home/terminal9
> clock-app 28220 terminal9  mem       REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> clock-app 28220 terminal9   38r      REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> wnck-appl 28222 terminal9  mem       REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> wnck-appl 28222 terminal9   39r      REG        9,1    65597   10913675 
> /home/terminal9/.rh-fontconfig/.fonts.cache-2
> *************************************************************************************** 
> 
> 
> now when logged of ... at the end of PostSession script sequence :
> *************************************************************************************** 
> 
> gconfd-2  28327 terminal9   15w      REG        9,1    85244   10913564 
> /home/terminal9/.gconfd/saved_state (deleted)
> *************************************************************************************** 
> 
> and while waiting a bit more ... list is empty.
> 
> This is what it shows when I'm writing this letter and looking state 
> over SSH.
> However ... when I'm at the server and repeating the lsof | grep 
> /home/terminal9 while it's in the logout sequence I get some more 
> information but all of them get the (deleted) message and are font 
> files/folders and config files. Nothing about folders / files created by 
> the user
> 
> 
> Meelis
> ---
> meelis at nlib.ee
> 
> 
> ----- Original Message ----- From: "Burke Almquist" 
> <balmquist at mindfirestudios.com>
> To: "Support list for open source software in schools." <k12osn at redhat.com>
> Sent: Saturday, December 16, 2006 3:01 PM
> Subject: Re: [K12OSN] PostSession script, rm command and user directories
> 
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Are the files that it won't erase being held open by something? Try  
>> using lsof?
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.5 (Darwin)
>>
>> iEYEARECAAYFAkWD7iQACgkQfqZR3ThMfXQ36wCfUoZVQc+Srp9FOyjCslz0R2ln
>> yY4An0P3LMrhj4DBJVTOShtrbfnx8hqL
>> =nYBm
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> K12OSN mailing list
>> K12OSN at redhat.com
>> https://www.redhat.com/mailman/listinfo/k12osn
>> For more info see <http://www.k12os.org>
>>
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 




More information about the K12OSN mailing list