I had an issue with wifi, which is still unsolved because of the problem that happened when I was trying to solve it.
I found this solution for wifi so tried it out:
sudo gedit /etc/pm/config.d/config
Insert in config this text
SUSPEND_MODULES = "drivername logicalchipname"
I noticed that I didn't have permission to write or execute the file so I tried to use chmod
to solve the problem.
This is an ordered list of all operations that I've made and that led to the problem of this question:
chmod 700 config
chmod 700 config.d
chmod 700 etc
chmod 754 etc
After the third or fourth command (I'm not sure which one of them) I lost my administrator rights; in fact if I try to use the command sudo
it outputs 3 lines which I'll translate as best I can:
sudo: cannot stat /etc/sudoers : permission denied
sudo: no valid source of sudoers found, exiting
sudo: could not initialize policy plugin
On the terminal it displays
-bash: /etc/profile: Permission denied
Missing name@zenoraiser-P552LA
Now whenever I open the terminal it outputs me the bash /etc/profile: Permission denied line that I've never seen before and the missing name part is unusual because it should be written zenoraiser instead of that.
What do you suggest I do?
chmod
orchown
outside of your own personal files. Never. Ever. The anser from ziazis should work. As another option you can also re-install Ubuntu --without-- formatting any of your partitions. Just mount them. Also: make sure to make a backup of your personal files if you end up doing that.sudo
will not do anything unless the user running it has x on/etc