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

learn more… | top users | synonyms

8
votes
3answers
10k 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 ...
3
votes
2answers
2k views

What are the standard file permissions for the /etc directory(file)

I kinda screwed up the /etc directory by running: sudo chmod 417 /etc Leaving me unable to use sudo: sudo: can't open /etc/sudoers: permission denied. sudo: no valid sudoers sources foundm ...
0
votes
3answers
4k views

execute file denied [duplicate]

Possible Duplicate: How to 'chmod' on an NTFS ( or FAT32 ) partition? I am a beginner on ubuntu 11.10, I want to execute some program named ./Pro but when i try: $ ./Pro I get ...
3
votes
2answers
142 views

changed the permission of bin to 700

I changed (through chmod) the permission of /bin to 770. Now, ubuntu does not boot. How do I fix this problem?
3
votes
1answer
878 views

can't chmod on external hard disk? [duplicate]

Possible Duplicate: How to change files permissions from a different hard drive? I have an USB3.0 external hard disk, partitioned to 3 NTFS partitions. When I plug the hard disk in, the 3 ...
1
vote
1answer
926 views

Cannot find a safe socket path in '/tmp'

A while ago I accidentally ran chmod 777 /, and stopped it as soon as I realized what I had done. Unfortunately, it must have gotten to my /tmp directory, because whenever I start to run Firefox now, ...
4
votes
2answers
28k views

How can I change permissions of a folder, including its enclosed files and subdirectories?

I need to recursively change the permissions of all folders, sub-folders and files from within ~/.local/share/Trash/expunged Does anyone have a clue or idea on how to do this? I have tried ...
2
votes
2answers
11k views

Setting directory file permissions in Ubuntu using chmod

whats the equivalent command of this (Fedora command) for Ubuntu: chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs When I try the above with Ubuntu ...
1
vote
2answers
1k views

Unable to Login (Ubuntu 11.10)

I'm having a weird issue. When I put my password using my account (ramiz) on the login screen of GUI, a blink of screen and it take me back to the login screen. I tried with Guest user and it is ...
1
vote
4answers
1k 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
5k 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 ...
0
votes
1answer
2k views

Automatically mounted NTFS (not in /etc/fstab) won't chmod

I have an NTFS partition so I can share with a dual-booted Windows installation. chmod doesn't do anything, nor issue a warning to indicate this. I want other (Ubuntu) users to have RW permissions on ...
9
votes
4answers
15k views

Permission denied on ~ even though owner listed as me

Somehow, I managed to chmod and chown my ~ into oblivion. When I attempt to login through the shell, I get bash: ~/.bashrc : Permission denied Even after (as root) I've run chown -hR nroach44 ...
2
votes
1answer
663 views

Are there consequences to running 'sudo chmod u+s /sbin/shutdown'

I want to do this so that gShutdown application can shutdown the system when I'm not there to enter a password. But I've read on forums that changing linux commands with chmod can cause problems in ...
0
votes
1answer
218 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 ...
1
vote
2answers
422 views

How can I change a set of files Permsissions from Root to user

I copied A set of BlueJ files from /usr/share/doc/BlueJ to a ~/BlueJ directory however the files in folders are set to root permission and read only I need to be able to read/write them. So in BlueJ ...
2
votes
4answers
541 views

How can I limit a user to access just his folder? Not able to view/cd into any other thing?

How do I limit a user to access just his folder? Suppose I don't want the user to be able to cd anywhere else, isit possible? Do I need to chmod the whole system?
0
votes
1answer
716 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 ...
0
votes
2answers
2k views

Change folder permission

What permission should i apply to a folder so that everyone can see the hierarchy and all the files inside but they should not be able to read and write them. The folder can have multiple other ...
0
votes
1answer
1k views

“Permission denied” when starting binary despite “rwx” priviledge

I am trying to run the statistics software Stata 11 on Ubuntu 11.10. as a regular user and I get the following error message: bash: xstata: Permission denied The user priviledges seem ok to me as a ...
2
votes
3answers
686 views

Messed up file permissions

Not being an expert in Linux/Ubuntu, I had to install from scratch today and messed up w/file permissions. The thing is that, when backing everything up before reinstalling, a couple of important ...
4
votes
3answers
5k 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
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
698 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
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
9
votes
2answers
6k 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
17k 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
542 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
341 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
6k 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
4k 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 ...
12
votes
4answers
4k 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
525 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
3k 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$
3
votes
1answer
127 views

Is there any way to make sure that any file created in a specific folder has a certain group as owner?

I know that you can set a directory up so specific groups have access to it, but is there any way to set it up so that any new files created in it automatically have a specific group as the group ...
23
votes
3answers
73k 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 ...
6
votes
3answers
24k 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
3answers
15k 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 ...
51
votes
8answers
43k 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 ...