chmod changes the permissions of each given file according to mode, where mode describes the permissions to modify.

learn more… | top users | synonyms

1
vote
1answer
1k views

Executable not running even after chmod'ing it

I am trying to run a BETA precompiled copy of rcracki .. but the problem is when I try to run the executable, it gives an error: I tried to format the snippet below into one code block, but it didn't ...
1
vote
2answers
666 views

How to access executable in a seperate partition? [duplicate]

Possible Duplicate: How to 'chmod' on an NTFS partition? I have just started using Ubuntu and I have my hard drive set up with an Ubuntu partition, a Windows 7 partition and a much ...
1
vote
2answers
2k 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
8
votes
2answers
5k views

chmod files only in all subdirectories

Please someone assist me with chmod, I have the following file structure -dir1 --file1 --file2 --dir1a ---file1a1 ---file1a2 --dir1b ---file1b1 ---file1b2 How do I chmod 655 to all files under dir1 ...
10
votes
3answers
14k 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 ...
1
vote
1answer
458 views

ddclient not working without sudo

When I run ddclient (DynamicDns Updator) without sudo, I get WARNING: file /etc/ddclient.conf: Cannot open file '/etc/ddclient.conf'. (Permission denied) stat() on closed filehandle FD at ...
1
vote
2answers
321 views

How to recover from mistakenly chmod operation?

I screwed up all my files permissions under a directory, how can I recover. Especially, how to change the files that is non-executable back to read-write-only?What I did wrong was that I chmod all the ...
3
votes
3answers
5k views

Cannot write to Folder mounted with SSHFS

I just created a folder according to SSHFS (Ubuntu Docs) sudo apt-get install sshfs sudo gpasswd -a jm fuse sshfs -o idmap=user jm@example.com:/path/to/folder folder Then I found that the folder is ...
12
votes
1answer
3k views

Files are read-only after copying over samba

I used to copy files from one system to another system via samba. How ever I am getting the file only in read only mode. What i am doing now is i used to change the file permission after transferring ...
10
votes
4answers
3k views

What if I accidently run command “chmod - R” on system directories (/, /etc, …)

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 ...
2
votes
2answers
4k 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 ...
2
votes
1answer
507 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
2k 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$
19
votes
3answers
62k 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 ...
5
votes
3answers
23k 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 ...
8
votes
2answers
14k 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 ...
48
votes
8answers
37k views

How do I use '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 ...