sudo not working
I typed in the following command on my Ubuntu Terminal
sudo -
sudo-
su-
su -
In all of the above cases, I got an error saying that the command was not found. When I used the first one before, it worked and moved on to ask for the password. However, after that, it did not work anymore. HOw do I use it correctly?
My other question is about deleting accounts. How do I delete a user account at the command line?
Also, when I used useradd command, I get this error - user cannot lock /etc/passwd
I want to look at my /etc/passwd/ file folder. I went to the filesystem and the etc. folder but could not view either the passwd folder or the shadow folder. i want to see what this looks like. I am working or teaching myself how to use Linux Administration using Virtual PC emulator system for windows on my own home computer.
Also, can you tell me how to change the permissions from the following
I would like to go from - rw-r--r-- to rw-rw-r--.
I typed the following:
chmod rw-rw-r-- file1
I also tried using this
chmod g +w file1
none of this worked for me, am I typing it incorrectly
Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu sudo Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Akua Asamoah for more information if necessary.