[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] PostSession script, rm command and user directories



Ok ... tryed the chmod thingy and added Petre's code but nothing happened.
Directories/files that the user created while working with the terminal are not removed (this is the main reason why I'm creating this solution).

I'm out of ideas :(

The same thing occurs with other accounts as well that I've made for readers to use in terminals. It removes the files that are made in the Desktop directory but nothind is deleted from the users home folder. I'm talking about the files/directories made by the user.

Following is the permissions and files/directories list from account "terminal9" not logged out :

*********************************************************************
drwx------ 23 terminal9 users  4096 16. dets  12:18 .
drwxr-x--- 22 arvuti1   users  4096 15. dets  14:07 ..
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .adobe
-rw-r--r--  1 terminal9 users    24 23. okt   18:14 .bash_logout
-rw-r--r--  1 terminal9 users   191 23. okt   18:14 .bash_profile
-rw-r--r--  1 terminal9 users   124 23. okt   18:14 .bashrc
drwx------  3 terminal9 users  4096 16. dets  12:17 .config
drwxr-xr-x  2 terminal9 users  4096 16. dets  12:18 Desktop
-rw-------  1 terminal9 users    26 13. dets  11:40 .dmrc
drwxr-xr-x  3 terminal9 users  4096 16. dets  12:18 Drives
-rw-r--r-- 1 terminal9 users 23348 16. dets 12:17 Eesti Rahvusraamatukogu <<< made by user >>> drwxr-xr-x 2 terminal9 users 4096 16. dets 12:17 Eesti Rahvusraamatukogu_files <<<< made by user >>>
drwxr-x---  2 terminal9 users  4096 13. dets  11:40 .eggcups
-rw-------  1 terminal9 users    16 13. dets  11:41 .esd_auth
drwx------  4 terminal9 users  4096 16. dets  12:18 .gconf
drwx------  2 terminal9 users  4096 16. dets  12:18 .gconfd
-rw-r--r--  1 terminal9 users    49 16. dets  12:18 .gconf.path.defaults
-rw-r--r--  1 terminal9 users    50 16. dets  12:18 .gconf.path.mandatory
drwxr-xr-x  4 terminal9 users  4096 13. dets  11:40 .gconf.xml.defaults
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .gconf.xml.mandatory
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .gnome
drwxr-xr-x  7 terminal9 users  4096 13. dets  11:41 .gnome2
drwx------  2 terminal9 users  4096 13. dets  11:40 .gnome2_private
-rw-r--r--  1 terminal9 users   138 13. dets  11:40 .gtkrc-1.2-gnome2
-rw-------  1 terminal9 users   177 16. dets  12:18 .ICEauthority
drwxr-xr-x  3 terminal9 users  4096  8. nov   11:48 .kde
prw-r--r--  1 terminal9 users     0 13. dets  11:40 .lbus_fifo
-rw-r--r--  1 terminal9 users     0 16. dets  12:18 .lbussd.out
drwx------  3 terminal9 users  4096 13. dets  11:40 .metacity
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .mozilla
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .nautilus
drwxr-xr-x 2 terminal9 users 4096 16. dets 12:18 nimeta kataloog <<< made by user >>> drwxr-xr-x 2 terminal9 users 4096 16. dets 12:18 nimeta kataloog 1 <<< made by user >>>
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:41 .openoffice.org2.0
drwxr-xr-x  2 terminal9 users  4096 13. dets  11:40 .rh-fontconfig
-rw-r--r--  1 terminal9 users   658 12. veebr  2006 .zshrc
-rw-------  1 terminal9 users    49 16. dets  12:18 .Xauthority
***********************************************************************

and now if I log off and DO NOT let the system to untar the backup directory ... this is what will not be erased by RM command :

***********************************************************************
drwx------ 22 terminal9 users  4096 16. dets  12:26 .
drwxr-x--- 22 arvuti1   users  4096 15. dets  14:07 ..
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .adobe
-rw-r--r--  1 terminal9 users    24 23. okt   18:14 .bash_logout
-rw-r--r--  1 terminal9 users   191 23. okt   18:14 .bash_profile
-rw-r--r--  1 terminal9 users   124 23. okt   18:14 .bashrc
drwx------  3 terminal9 users  4096 16. dets  12:17 .config
-rw-------  1 terminal9 users    26 13. dets  11:40 .dmrc
drwxr-xr-x  2 terminal9 users  4096 16. dets  12:26 Drives
-rw-r--r-- 1 terminal9 users 23348 16. dets 12:17 Eesti Rahvusraamatukogu <<< user made >>> drwxr-xr-x 2 terminal9 users 4096 16. dets 12:17 Eesti Rahvusraamatukogu_files <<< user made >>>
drwxr-x---  2 terminal9 users  4096 13. dets  11:40 .eggcups
-rw-------  1 terminal9 users    16 13. dets  11:41 .esd_auth
drwx------  4 terminal9 users  4096 16. dets  12:26 .gconf
drwx------  2 terminal9 users  4096 16. dets  12:27 .gconfd
-rw-r--r--  1 terminal9 users    49 16. dets  12:18 .gconf.path.defaults
-rw-r--r--  1 terminal9 users    50 16. dets  12:18 .gconf.path.mandatory
drwxr-xr-x  4 terminal9 users  4096 13. dets  11:40 .gconf.xml.defaults
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .gconf.xml.mandatory
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .gnome
drwxr-xr-x  7 terminal9 users  4096 16. dets  12:26 .gnome2
drwx------  2 terminal9 users  4096 13. dets  11:40 .gnome2_private
-rw-r--r--  1 terminal9 users   138 13. dets  11:40 .gtkrc-1.2-gnome2
-rw-------  1 terminal9 users     0 16. dets  12:26 .ICEauthority
drwxr-xr-x  3 terminal9 users  4096  8. nov   11:48 .kde
prw-r--r--  1 terminal9 users     0 13. dets  11:40 .lbus_fifo
-rw-r--r--  1 terminal9 users   393 16. dets  12:26 .lbussd.out
drwx------  3 terminal9 users  4096 13. dets  11:40 .metacity
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .mozilla
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:40 .nautilus
drwxr-xr-x 2 terminal9 users 4096 16. dets 12:18 nimeta kataloog <<< user made >>> drwxr-xr-x 2 terminal9 users 4096 16. dets 12:18 nimeta kataloog 1 <<< user made >>>
drwxr-xr-x  3 terminal9 users  4096 13. dets  11:41 .openoffice.org2.0
drwxr-xr-x  2 terminal9 users  4096 13. dets  11:40 .rh-fontconfig
-rw-r--r--  1 terminal9 users   658 12. veebr  2006 .zshrc
************************************************************************

The RM command used to erase is :
rm -rf /home/terminal9/*

Could you give me some more ideas what to try ? I would really appreciate it :)

Meelis
---
meelis nlib ee





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]