Page 1 of 1

delete as root

Posted: 27 Oct 2013, 13:14
by prolinux
When I delete as root I would prefer not to transfer to a bin but really delete. Thanks for a nice distro: fast, easy to change to my needs and with good hardware support. Thanks for quick and good help some time ago when I wanted to incorporate another root password into one of the modules.

Kindly Ove Overgaard

Re: delete as root

Posted: 27 Oct 2013, 14:24
by fanthom
which DE are you using?
if LXDE then it's quite straight forward:
open pcmanfm (as root) -> Edit -> Preferences -> unmark 'Move deleted files to "trash bin" instead of ereasing from disk'

Re: delete as root

Posted: 01 Nov 2013, 22:16
by tome
Is this possible to enable Trash for guest like for root? For root and on removable devices for every user Trash is in / but for local drives Trash for guest is in .../.local/share/. I want to have Desktop and Trash in real filesystem (link or magic folder) but then I can't move files to Trash because guest is in aufs, similar problem is for another local partitions. Possible solution for unix filesystems is changes:EXIT and saving Desktop and Trash (config file for exitchanges in /etc) but I have too many files on my ntfs to format it - what must I modify to save changes on ntfs or fat like for unix fs beside porteussave.dat?

Re: delete as root

Posted: 02 Nov 2013, 14:30
by brokenman
what must I modify to save changes on ntfs or fat like for unix fs beside porteussave.dat?
This will end badly. For one thing these file systems don't honour symlinks or case in the way that we use them. Trial and error has shown in the past that this doesn't work very well, so Porteus now doesn't offer the option. You could tweak the startup scripts to allow it but you will meet corrupt changes eventually.

Re: delete as root

Posted: 02 Nov 2013, 15:28
by tome
Thanks, NTFS (and even Windows7) supports symlinks in contrast to FAT. Now I have guest folder in NTFS and it works without problems (wine must be linked to mounted container or activated module) but I prefer fresh mode for guest config files. By the way winrar for unix fs has interesting compression method - it creates main folders with name of permissions for everything in it. Maybe something similar is possible to do for Porteus (NTFS).

Re: delete as root

Posted: 02 Nov 2013, 21:38
by brokenman
Sorry, yes ntfs supports these.

Re: delete as root

Posted: 03 Nov 2013, 09:41
by fanthom
ntfs nad fat does not support linux permissions so i'll never allow to save directly on them (posixovl is outdated and does not work with recent version of aufs anymore).

regarding trash:
must admit that it's a bit of mystery how it works. from my little experience i can say that it allows to move files to trash only from root tree but not from /mnt/sdXY (and doesn't matter if partition is formatted with linux or windows filesystem).
i have tried 'always fresh' and with changes saved on /mnt/sda1 and still got the message saying 'underlying filesystem does not support this operation'.

i'm out of clues - Ahau please help.

Re: delete as root

Posted: 06 Nov 2013, 17:45
by tome
i have tried 'always fresh' and with changes saved on /mnt/sda1 and still got the message saying 'underlying filesystem does not support this operation'.
Try as root and with other file manager (without Spacefm).

I will try to make new user account guest2 that will be linked to real fs and replace guest2 folders (without Desktop and Trash) with links to guest folders. So trash should work and settings for guest2 should be fresh. But dconf in .cache must not be linked (to many cpu resources) and in lxde I have only run and logout entry in start-menu so I will try find what must not be also linked.

Re: delete as root

Posted: 07 Nov 2013, 09:09
by tome
... I loaded during boot my module with settings so dconf and menus in .cache folder should be refreshed (in this way) and then can be linked. I have also replaced

Code: Select all

guest:x:1000:1000::/home/guest:/bin/bash
with

Code: Select all

guest:x:1000:1000::/home/guest2:/bin/bash
in /etc/passwd to have correct permissions. 8)

Re: delete as root

Posted: 14 Nov 2013, 20:46
by tome
In /home/.../.config/libfm/libfm.conf can be disabled Trash for pcmanfm on ntfs and fat partitions:

Code: Select all

no_usb_trash=1

Re: delete as root

Posted: 18 Nov 2013, 10:35
by tome
Strange:
If I use magic folders for Desktop then pcmanfm deletes files like for usb devices but trash (icon) is all time empty.
If I use changes= or changes=EXIT: cheatcodes and want delete files from this partitions (not from aufs) spacefm allow delete only files but not folders and in pcmanfm I can only restore files but not move to trash.

Re: delete as root

Posted: 26 Nov 2013, 20:55
by tome
if permissions for / are "correct" (test - if guest can save files to root tree) then trash for guest is in /mnt/sdaX/.Trash. and not in /local/share/Trash (pcmanfm) so it can be used both symlink for Desktop (real fs) and move to Trash action.

Re: delete as root

Posted: 27 Nov 2013, 04:44
by tome
I wanted to move files to Trash as guest but in root way. Example:
Desktop is in real fs (link) and I don't use changes so I can not move files to Trash by filemanager command (try if you use non-root account). How to do it (non-ideal solution) is explained in my above last post.

Re: delete as root

Posted: 27 Nov 2013, 18:17
by tome
I was wrong and I mixed up. Trash for guest in above (like root) way requires only posix compatibility (no fat or ntfs) and write permissions for partition (/mnt/sdaX) but not permissions for "/" (pcmanfm). :wall: