I tried to change permission but it cannot.it says permission denied and operation denied how can i change the mode.. i tried every thing..
I have tried using sudo, but it gave this error
sudo chown bin ns-allinone-3.21
sudo: error in /etc/sudo.conf, line 0 while loading plugin sudoers_policy' sudo: /usr/libexec/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins) 1 3 Answers
You need to fix your sudoers problem first, as it will be necessary to run chown in this case. As described in this Stack exchange question in most Unix systems users may only run chown if they have the target user and group privileges.
To fix your sudoers problem:
- During boot press and hold the left Shift key or any other key and select "Advanced options for Ubuntu"
- boot in "Recovery mode".
- Select "Enable networking"
- Select "Drop to a root shell propmpt":
Run the following commands
chown root:root /usr/lib/sudo/sudoers.so
chmod 644 /usr/lib/sudo/sudoers.soReboot normally.
1If you want to remove the permissions you can issue the command:
$ chmod ugo-wrx filenameThat will take away all the permissions from the filename.
If you want to have only the User (the owner of the file) have access you can issue:
$ chmod u+wrx filename Generally speaking to change ownership you must be the root user. If you have sudo setup then try using sudo.
sudo chown bin ns-allinone-3.21 4