delete as root
delete as root
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
Kindly Ove Overgaard
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: delete as root
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'
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'
Please add [Solved] to your thread title if the solution was found.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
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?
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: delete as root
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.what must I modify to save changes on ntfs or fat like for unix fs beside porteussave.dat?
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
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).
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: delete as root
Sorry, yes ntfs supports these.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: delete as root
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.
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.
Please add [Solved] to your thread title if the solution was found.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
Try as root and with other file manager (without Spacefm).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 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.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
... 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 with in /etc/passwd to have correct permissions. 8)
Code: Select all
guest:x:1000:1000::/home/guest:/bin/bash
Code: Select all
guest:x:1000:1000::/home/guest2:/bin/bash
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
In /home/.../.config/libfm/libfm.conf can be disabled Trash for pcmanfm on ntfs and fat partitions:
Code: Select all
no_usb_trash=1
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
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.
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.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
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.
Last edited by tome on 27 Nov 2013, 04:13, edited 2 times in total.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
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.
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.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: delete as root
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). 
