chmod changes the permissions of each given file according to mode, where mode describes the permissions to modify.
30
votes
7answers
19k views
How to 'chmod' on an NTFS ( or FAT32 ) partition?
I have a script that I need to execute on an NTFS partition. The script's permission is set to 600.
I attempted to modify the permissions by running chmod 755 script.sh, which doesn't report a ...
4
votes
3answers
4k 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 ...
7
votes
4answers
1k views
What if I accidently run command chmod
I accidently ran
sudo chmod 755 -R /
instead of
sudo chmod 755 -R ./
I stopped it after few seconds, but now there is some problems such as
sudo: must be setuid root
How can I revert ...
4
votes
2answers
17k views
Default file permissions for php user www-data
I have a php installed on my ubuntu machine. The web root is /var/www
I set the permissions for this folder like so:
sudo chown -R ftpuser:www-data /var/www
ftpuser is the user I set up so I ...
6
votes
2answers
129 views
How can I recover from chmod -R a-wrx / command?
Today I ran sudo chmod -R a-wrx /. Now nothing is working. Can anyone help me recover my system?
1
vote
2answers
1k views
Ubuntu took away permissions from my Data partition
The pangolin has struck again. The bug of the day for today is Ubuntu taking away my permissions on my Data partition (NTFS). One moment everything worked fine, the next moment I couldn't chmod ...
4
votes
1answer
188 views
Assigning different directory permission for each different groups
I am running Ubuntu 12.04 64bit server on ext4.
There are four user groups - marketing, sales, admin and etc.
I need to assign different permissions to /archive as follows:
rw for the marketing ...
2
votes
2answers
2k views
File permissions: why can't I list a directory?
I am able to list directories in a root shell,
root@ThinkPad:~# ll /media/
total 36
drwxr--r-- 6 root root 4096 2011-05-12 16:41 ./
drwxr-xr-x 22 root root 4096 2011-05-12 13:14 ../
drwxr-xr-x 5 ...
1
vote
2answers
83 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 ...
1
vote
1answer
1k views
Can't make a file executable
I'm using Ubuntu 12.04 64bit and I'm trying to make a file executable, but when I check the "Allow executing file as program", the check mark appears then disappear spontaneously.
If it could help, my ...
7
votes
2answers
5k views
Changing permissions on serial port
I'm using the Arduino IDE in Ubuntu, and am having issues with the serial port. It has worked in the past, but for reasons that may be unnecesary, I felt the need to change the ownership of some of ...
2
votes
2answers
2k views
How to repair “sudo: /etc/sudoers is mode 0640, should be 0440?”
Why might sudo chmod -R a+w * cause
sudo: /etc/sudoers is mode 0640, should be 0440 sudo:
no valid sudoers sources found, quitting
and how might it be made to work?
1
vote
4answers
726 views
Permisions set to unknown after chmod 777
I just noticed that after running
chmod 777 *
on a directory that has sub-directories in it does what you would expect. It sets the permissions of everything, including the sub-directories to 777. ...
4
votes
2answers
4k views
Default filesystem permissions and access rights in 12.04?
I have for many years on Unix and Linux systems as default set filsystem permissions and access rights to read and write for user (i.e. myself), and only read permissions for group and others. In the ...
2
votes
3answers
1k views
What are the default file permissions for the home folder?
I have somehow inadvertently altered the file permissions of my home directory. I wish to change them back to the default permissions. However, I can“t seem to find out what the default is.
...
1
vote
1answer
277 views
How can I add file create read write and delete for a specific user?
Question:
I need to give file create, read, write and delete access to /var/log for user bind only.
How can I do that, short of allowing read and write and delete access for everybody ?
0
votes
0answers
62 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
...
0
votes
1answer
304 views
How to make /var/www/html same as my /var/tmp directory?
I am using one software, who can save files to /var/tmp but not in /var/www/*.*.
I did applied chmod -R 777 /var/www. But still it can write to /var/tmp but not /var/www
How can I resolve this? (I ...
