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
2answers
67 views

How to prevent directory from being deleted by user?

Suppose a directory dir1 is created by sudo on Desktop. sudo mkdir dir1 Then I applied chown and chmod as following: sudo chown root:root dir1 sudo chmod go-rwx dir1 Now dir1 is only accessible ...
12
votes
5answers
899 views

Difference between +x and ./<script> and sh ./<script>

Are there any actual differences between running a script with [sudo] sh ./<script>.run instead of [sudo] chmod +x ./<script>.run [sudo] ./<script>.run
0
votes
0answers
260 views

Unable to change permissions for apache file 000-default.conf

I am trying to change the permissions for the apache file /etc/apache2/sites-enabled/000-default.conf when I input the command sudo chmod 755 000-default.conf the file still stays to ...
0
votes
1answer
35 views

Repair filesystem permission

I accidentally executed sudo chmod -R 777 / I was actually trying to change a specific folder permission recursively, btw i did stop the command before it changed everything. But now, i can't ...
3
votes
3answers
6k views

Not able to install *.run file in Ubuntu? [duplicate]

I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI. I have to install few softwares in Ubuntu which are as follow: MPLAB X IDE version 1.90 XC8 Compiler and ...
0
votes
1answer
538 views

how can I recursively run chmod -x?

So I have my music collection living on my 12.04.2 server. This Collection has traveled with me over the years from a Windows machine to a MacBook Pro, and then finally to where it is today on the ...
0
votes
1answer
317 views

How to recursively set permissions for files only?

I want to remove executable permission for all files in my home folder, recursively, how to do that using command line?
0
votes
1answer
1k views

Unable to run compiled files - bash: ./a.out: Permission denied. (I've tried chmod)

First of all, there are many questions like this on AU. Still, none of them solved my problem. I've compiled my C source using cc test.c, and it did generate a.out file. However when I run it I get ...
1
vote
2answers
186 views

Accidentally ran command, now don't know what to do

Accidentally ran command sudo chmod -R o+x /home on my Ubuntu 12.10. Now what me to do? is that dangerous? I have no backup of partition, so I think this command is not reversible. SO me to ...
4
votes
2answers
4k views

Why doesn't chmod work on a file under /media?

I want to execute a script file from terminal but it shows error root@silambarasan-PC:/media/D-DEVELOPME/androidSdk/adt-bundle-linux-x86/sdk/tools# ./android -bash: ./android: Permission denied` so ...
4
votes
2answers
9k views

chmod: invalid mode: `+a'

System: ( lsb_release -a ) Distributor ID: Ubuntu Description: Ubuntu 10.04.4 LTS Release: 10.04 Codename: lucid This is my command: sudo chmod +a "www-data allow ...
0
votes
1answer
224 views

Is it possible for a directory to change permissions of the files that are added to it?

I have a directory and I want all files that are put in it to have the permissions of **5. In other words I want the permissions of the owner and group to stay the same but the permission to be read ...