1
vote
0answers
54 views

Cannot chown or chmod using sudo anymore

I was trying to make an adjustment to the /etc/sudoers file, and I accidentally corrupted it. I restored it via the grub and using the Ubuntu 14.04 default. But now it seems I can change ownership ...
1
vote
1answer
121 views

How to let a user execute a script owned by root? Setuid doesn't seem to work anymore

I have some bash scripts that I use with the user 'root' to manage iptable rules. The problem is that I want these things at the same time: The script must be owned by root Permissions must be 700 ...
1
vote
3answers
104 views

How do I unprotect a file which is owned by root?

12.04 LTS and I mistakenly protected a file named set using: chmod 700 /home/jatin/Desktop/set How do I unprotect it?
2
votes
1answer
376 views

What are the default permissions for /root?

Not realizing what directory I was in, I did a "chmod 777 ." in /root. Now I would like to set the permissions for /root back to the default. Can someone please tell me the correct default permissions ...
0
votes
1answer
71 views

delete the read permission from a file

So, let's say I have a file named FILE. Whenever someone wants to edit or read it (for example cat FILE in terminal), it should ask for root password. How to do this? I suppose there's a chmod ...
0
votes
1answer
274 views

Cannot undo sudo chmod 655 /

I've accidentally run 'sudo chmod 655 /', and now I cannot undo this operation again because I cannot access sudo anymore. I'd actually wanted the permission to be set to 755. Is there any way I can ...
1
vote
1answer
134 views

How can we execute a terminal-command for all the subfolders, at once

I need to change ownership of my Downloads folder from root to my username. Using 'chown' and '*' wildcard I could get around with each folder and it's files but that's tedious. Anything I could do ...
0
votes
1answer
532 views

Changing directory permissions [duplicate]

Hey I need to change the permissions of the /var/www directory But it won't let me. I've tried the chmod command, I've also tried it with sudo and still nothing. Please HELP!! ...
0
votes
0answers
1k views

What to do after 'chmod -R 777 /'? [duplicate]

I have many file permission problems, as being a newbie, I unfortunately set permissions on everything somehow to 777 (chmod -R 777 /). I believe I've done this from the root directory logged in as ...
0
votes
1answer
649 views

Can't log in although password is correct

Im fairly new to ubuntu so bear with me on this. I was doing an assignment for my CSCI 323 class that required Manually adding a new user and my problem came about after I followed these instructions: ...
1
vote
2answers
524 views

Why can root still edit files with a permission of 0?

I just wanted to delete most files from an external HD except some certain ones. So I chmod these ones to 0 and did a sudo rm -r ./*. Painfully, the result was that everything got deleted. Why is ...
0
votes
0answers
68 views

Cannot use sudo command, changed permission of /usr folder [duplicate]

Possible Duplicate: How to get back SUDO into working condition? Here's how I messed up my ubuntu, I wanted to change file permissions of /usr folder and I did that by taking root privilege ...
1
vote
1answer
426 views

I just recursively chmod'd everything under / to 750. Any tips?

I won't be the first and I won't be the last, I suppose. While playing around with the find command, I made a whoops and it would appear that instead of changing the permissions of the ~/web directory ...
8
votes
3answers
11k views

How to fix sudo after “chmod -R 777 /usr/bin”?

I enetered chmod -R 777 /usr/bin and now sudo is not working. It is giving error that sudo must be setuid root. On looking via Google, some advice said to run chown root:root /usr/bin/sudo chmod ...
0
votes
1answer
1k views

Changing the permissions in root files without sudo from recovery

Hi I recently killed my etc folder by running: sudo chmod etc 417. Due to sudo being in that folder it cannot be accesed now, so I have to change the permissions back to the correct ones using the ...
1
vote
2answers
3k views

Add user that can read / write a root, www-data files

How can I do that? I got user amira on my Ubuntu 11.4, I want him to able to see / read / write a root user files such as /etc/* and apache files