why am I being denid my rights to delete directories even I created in sudo now I cannot rid myself of it -- yes it is empty
did this to insure I have sudo in the accounts:
userz@bw:~$ sudo adduser userx sudo
[sudo] password for userz:
The user `userx' is already a member of `sudo'.
userz@bw:~$ sudo adduser userz sudo
The user `userz' is already a member of `sudo'.
userz@bw:~$ cd /usr/local/share
so then I tried to delete the directory:
userz@bw:/usr/local/share$ rmdir themes
rmdir: failed to remove ‘themes’: Permission denied
checked to be sure it is empty:
userz@bw:/usr/local/share$ cd themes
userz@bw:/usr/local/share/themes$ ls
userz@bw:/usr/local/share/themes$ ls -la
total 8
drwxr-xr-x 2 root root 4096 Oct 2 14:20 .
drwxr-xr-x 8 root root 4096 Oct 2 14:20 ..
userz@bw:/usr/local/share/themes$
if I am in sudo then why it not let me be super user dude to do what I will?
id
and then use instructions to reset the password to log in to a recovery shell don't change your password but provide the output ofcat /etc/sudoers
sudo adduser
in the first line of his post shows.