chmod changes the permissions of each given file according to mode, where mode describes the permissions to modify.
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
1answer
330 views
My newly added user cannot write to folder
Suppose I installed ubuntu with the user usr1 then I added usr2. I then create a group grp1 where this 2 users are added. A folder is owned by usr1 and has group grp1. But when I login as usr2 I ...
4
votes
3answers
553 views
problem with chmod command
I don't know what is happening
experimentx@workmateX:/var/www$ sudo chmod 0777 -r /var/www/
chmod: cannot access `0777': No such file or directory
experimentx@workmateX:/var/www$
11
votes
3answers
22k views
'chmod u+x' versus 'chmod +x'
What is the difference between chmod u+x and just chmod +x? I have seen a ton of tutorials that say to use u+x to make scripts executable. However, the u is not mentioned in the chmod help or ...
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
8k views
Error after sudo-ing “sudo: must be setuid root”
On a colleagues computer, everytime I use a sudo command, I get this error:
sudo: must be setuid root
I tried various things mentioned on the internet, like changing the permissions to 4755 from a ...
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 ...