Taking ownership of folders
by DragonspitPublishing.Com from LinuxQuestions.org on (#6KK3Y)
I use Linux Mint 21.2 Cinnamon. I'm trying to clean up my system after uninstalling Turboprint.
I used Synaptic Package Manager to delete the package, but got this readout at the end.
(Reading database ... 827268 files and directories currently installed.)
Removing turboprint (2.55-1) ...
Processing triggers for man-db (2.10.2-1) ...
(Reading database ... 825986 files and directories currently installed.)
Purging configuration files for turboprint (2.55-1) ...
dpkg: warning: while removing turboprint, directory '/var/log/turboprint' not empty so not removed
dpkg: warning: while removing turboprint, directory '/usr/share/turboprint/profiles' not empty so not removed
dpkg: warning: while removing turboprint, directory '/etc/turboprint' not empty so not removed
So I located '/var/log/turboprint' and tried to delete it, but my system said I don't have permission because I don't have ownership.
How do I take ownership of the folder so I can get rid of it? I want to permanently delete all three:
'/var/log/turboprint'
'/usr/share/turboprint/profiles'
'/etc/turboprint'
Under Permissions, it says the first is owned by lp, the other two owned by root.
Thanks for any help.
I used Synaptic Package Manager to delete the package, but got this readout at the end.
(Reading database ... 827268 files and directories currently installed.)
Removing turboprint (2.55-1) ...
Processing triggers for man-db (2.10.2-1) ...
(Reading database ... 825986 files and directories currently installed.)
Purging configuration files for turboprint (2.55-1) ...
dpkg: warning: while removing turboprint, directory '/var/log/turboprint' not empty so not removed
dpkg: warning: while removing turboprint, directory '/usr/share/turboprint/profiles' not empty so not removed
dpkg: warning: while removing turboprint, directory '/etc/turboprint' not empty so not removed
So I located '/var/log/turboprint' and tried to delete it, but my system said I don't have permission because I don't have ownership.
How do I take ownership of the folder so I can get rid of it? I want to permanently delete all three:
'/var/log/turboprint'
'/usr/share/turboprint/profiles'
'/etc/turboprint'
Under Permissions, it says the first is owned by lp, the other two owned by root.
Thanks for any help.