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

learn more… | top users | synonyms

2
votes
1answer
577 views

Are world-writable folders safe?

Is it safe to chmod a directory 777, or is it a security risk? One of my scripts requires that in order to run in multi-user situations, and I'm wondering if it's okay.
3
votes
1answer
311 views

files disappeared after using chmod

I set my /var/www/wordpress folder to 744 permissions and all of the files within disappeared. If I right click the /wordpress folder and click properties, it says there are 0 bytes in the folder but ...
2
votes
1answer
385 views

Using FTP with a Shared Windows Folder

I started to use Ubuntu two weeks ago, I still have some difficulty in understanding the whole world of Linux. I'm in front of the following scenario: I have a Windows computer running 12.04 in a ...
1
vote
1answer
981 views

How to provide user permission to read, write on `/dev/sdax`? What is the syntax?

I have two my hard disk divided into two partition (apart from swap). First one is /dev/sda3 on which I have my ubuntu installation. Second one is /dev/sda1. Now, when I try to copy a file to ...
3
votes
4answers
6k views

Permissions for apache webroot folder on dev server?

I am a web developer and have Apache setup on my local system for testing. I keep running into issues with the permissions e.g. unless I chmod any new directories to 777 my IDE cannot write to the ...
1
vote
2answers
567 views

Why can root still edit files with a permission of 0?

I just wanted to delete most files from an external HD except some certain ones. So I chmod these ones to 0 and did a sudo rm -r ./*. Painfully, the result was that everything got deleted. Why is ...
1
vote
1answer
552 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 ?
2
votes
3answers
1k views

How to transfer file permissions from one folder to another?

I did cp -r on a folder (copy), then removed the original. I have a backup with most of the files. How do I restore the permissions of the files & folders on the copy using the backup? It ...
0
votes
1answer
291 views

xubuntu 12.04 Thunar deletes files with permission r--r--r--. Is it a bug?

I tried to prevent my digital photos (.jpg files) from accidental deletion using chmod 444 *.jpg. All permissions are set and displayed correctly in a terminal (ls -la) as well as in thunar's file ...
2
votes
1answer
693 views

How do I change the default permissions of home directories created with adduser?

How can I change the default chmod of new home directories (created with adduser)?
0
votes
0answers
68 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 ...
1
vote
1answer
2k views

How to overcome “Permission denied” running C program even after “chmod +x”?

After compiling a C program on Ubuntu 10.10, after executing chmod +x ./a.out, I am still getting bash: ./a.out: Permission denied. How can I run my new executable?
2
votes
1answer
725 views

How to use `chown` and `chmod` to make a “pipe” or “pass through” link from guest directory to elsewhere

I want to either extend the size of my guest partition or figure out how to copy stuff from the guest partition to my normal /home directory. (Because of some other problems I can only run Xorg as ...
1
vote
2answers
2k 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 ...
1
vote
1answer
461 views

I just recursively chmod'd everything under / to 750. Any tips?

I won't be the first and I won't be the last, I suppose. While playing around with the find command, I made a whoops and it would appear that instead of changing the permissions of the ~/web directory ...
0
votes
1answer
434 views

Unable to login to Ubuntu Permissions Issue?

Well, I think I royally messed this one up. In the process of changing permissions in my home directory, I now can't login using any of the 3 accounts I had setup, except for the Guest account. I ...
2
votes
2answers
3k 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 ...
0
votes
1answer
143 views

chmod 444 can't login

Using proftpd I'd like to login to server. I set permission to user directory to 444. When I am trying to login using ftp client - doesn't working, I can't log in. Did I do something wrong? Maybe I ...
4
votes
2answers
10k 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 ...
9
votes
1answer
11k views

How to get chmod (octal) permissions of the folder in the terminal?

I can look in properties of this folder but I want to get properties fast and in digits (octal, e.g. 755, etc.) What am I to type in terminal to know the chmod of the file or folder I want?
1
vote
1answer
1k views

Inheritable chmod permission from parent directory

I have a directory named cache in /var/www, where I need to provide permission in following way: sudo chmod -R 777 cache but that's not enough because PHP script automatically creates ...
0
votes
2answers
13k views

Unable to change permission of the files on mounted partitions in ubuntu 12.04 LTS

I have just installed ubuntu 12.04 LTS. I mounted my SOFTS(/dev/sda6), a NTFS partition by selecting it on nautilus. After that I openend the terminal and tried to change the permissions of a file. ...
8
votes
3answers
12k 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
3k 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
145 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
968 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 ...
2
votes
1answer
1k 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
30k 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
12k 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
17k 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
733 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
234 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
448 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
575 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
801 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
756 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
6k 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
2k 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: root@hosted-by:~/Desktop/rcracki_mt_0.7_beta2_linux_x86_64# ls COPYING ...
1
vote
2answers
735 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
7k 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
4answers
23k 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 ...