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
2answers
179 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 ...
4
votes
3answers
1k views

Is `chmod -R o+x /home` dangerous? [duplicate]

I'm very new to Ubuntu. During work on my home pc, I accidentally made the following command: sudo chmod -R o+x /home I want to know if it's dangerous to open access for other users and, if so, how ...
0
votes
0answers
1k views

What to do after 'chmod -R 777 /'? [duplicate]

I have many file permission problems, as being a newbie, I unfortunately set permissions on everything somehow to 777 (chmod -R 777 /). I believe I've done this from the root directory logged in as ...
1
vote
1answer
320 views

Not able to change permission of a file to add +x [duplicate]

I am not able to understand what is the issue here ? vks@vksTP:~/dropbox/shells$ ll sssh.sh -rw-rw-rw- 1 root root 1218 Mar 17 17:58 sssh.sh vks@vksTP:~/dropbox/shells$ sudo chmod +x sssh.sh ...
1
vote
1answer
3k views

Transmission daemon: permission denied even if debian-transmission has root group

I've got something really strange. Transmission-daemon keeps telling me "Permission denied /home/transmission/downloads/.." (.. = name of torrent folder and files) I created this folder ...
0
votes
1answer
59 views

Ubuntu woes on permissions [duplicate]

I ran sudo chmod -R myusername:myusername on I thought my /workspaces directory but it appears it did the command ran on the root directory, resulting in errors such as: Could not update ICEauthority ...
6
votes
2answers
1k 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?
5
votes
1answer
530 views

How to change default file/folder permission of specific user?

How can I make any folders or files created by a certain user always be public (accessible by anyone) in Ubuntu?
3
votes
0answers
41 views

chmod: permissions of a directory don't change [duplicate]

I have some issue with chmod: mis@hell:/var/www/blah$ sudo chmod g+w .git -v mode of `.git' changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x) mis@hell:/var/www/blah$ ls -la | grep git$ ...
0
votes
1answer
606 views

Can't log in although password is correct

Im fairly new to ubuntu so bear with me on this. I was doing an assignment for my CSCI 323 class that required Manually adding a new user and my problem came about after I followed these instructions: ...
4
votes
2answers
3k views

Why doesn't chmod work on a file under /media?

I want to execute a script file from terminal but it shows error root@silambarasan-PC:/media/D-DEVELOPME/androidSdk/adt-bundle-linux-x86/sdk/tools# ./android -bash: ./android: Permission denied` so ...
0
votes
2answers
687 views

sudo chmod -R 755 * accidentaly run in /, what are the options?

I have many programs installed, I want to keep my history, and so on and so on.. What can I do to save the situation? Thank you.
1
vote
1answer
233 views

Nautilus plugin to chmod

Some time ago (around Ubuntu 8.04) there was a plugin to Nautilus to change permissions tab in file properties window. It was showing permissions as checkboxes for R/W/X for user/group/others. I can't ...
4
votes
1answer
3k views

local wordpress installation, plugin installation and file permissions

I have a local wordpress installation and got everything working, until I tried to install a new plugin. Trying to activate the plugin, wordpress asked me for FTP connection information, which I ...
12
votes
3answers
9k views

Copy files without losing file/folder permissions

How can I copy files/folders from an ubuntu computer on a ext4 filesystem to another ubuntu computer which also is on an ext4 filesystem, using a usb stick which uses a vfat filesystem without losing ...
2
votes
1answer
176 views

Locked out of drive on Ubuntu Server

I was trying to delete some torrents that I had downloaded with transmission-daemon and was unable to from my samba share on windows due to transmission's default file creation permissions. I ...
2
votes
2answers
436 views

Can't mount UBS flash drives or my CD/DVD drives

How can I fix the permissions to get rid of the following error and mount my USB and internal CD/DVD drive: Adding read ACL for uid 1000 to `/media/bret' failed: Operation not supported These ...
0
votes
2answers
1k views

how can I change user permission settings for an application

I am trying to prevent the guest user from accessing software-center (I know it can't install anything, but I don't even want it to browse) The file is owned by root and in group root. I run: sudo ...
6
votes
1answer
188 views

Chmodded 000 the home folder,now unable to log in

I accidentally issued the following command sudo chmod 000 /home/username/. And now I'm unable to log in. Also when I'm trying from the bash shell, my home folder is appearing as ...
3
votes
1answer
188 views

Directory permission

I am running 12.04 x64 server on ext4 disk. There are two user groups 'A' and 'B'. For a specific directory, I would like to give its all permissions to user group 'A'. Also I would like to give only ...
0
votes
1answer
369 views

Writable permission is not writable

I am running Ubuntu 12.04 x64 server on ext4 partition. I set a directory's permission to '766' as below. sudo chmod 766 /archive drwxrw-rw- 3 root root 4096 Sep 27 10:50 archive/ But, when I ...
4
votes
1answer
298 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 ...
0
votes
0answers
5k views

chmod - file permission on writable [closed]

I am running Ubuntu 12.04 x64 server on ext4 partition. I set a directory's permission to '766' as below. sudo chmod 766 /archive drwxrw-rw- 3 root root 4096 Sep 27 10:50 archive/ But, when I ...
1
vote
0answers
200 views

setting permission for executable file output of gcc [duplicate]

Possible Duplicate: How to 'chmod' on an NTFS ( or FAT32 ) partition? Can't make a file executable i m pretty new to linux and gcc. i have a file1.s file which i tried to ...
1
vote
1answer
799 views

Permission denied when other users create files

I have messed up my home directory. I'm using dash as my shell and by myself I can create files just fine, but others can't. I don't think that made sense as it's kind of hard to explain, so hopefully ...
2
votes
2answers
4k views

chmod u+s in /var/www

i have a problem at granting the right rights for the right user... i want to run pootle with apache, so i downloaded pootle. Then i copied it to /var/www, installed it and gave the www-data user ...
2
votes
2answers
7k 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?
2
votes
1answer
499 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
260 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
339 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
891 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
510 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
490 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
273 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
616 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
682 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
411 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
417 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
2k 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
137 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 ...
2
votes
4answers
1k views

Changing file permissions problem

A few hours earlier I bought a beaglebone and now I am trying to add nameserver 8.8.8.8 (google DNS) to /etc/resolv.conf. However when I open it with vim and try to add my nameserver, it gives me E21: ...
4
votes
2answers
9k 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
8k 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
12k 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. ...