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

learn more… | top users | synonyms

3
votes
3answers
128 views

chmod 777 on a home network

I decided to make my home server an Ubuntu Desktop machine. After searching online, I installed Samba and connected my other Windows pc with my Ubuntu desktop. When I shared files from the server to ...
0
votes
0answers
30 views

Executable file - No such file or directory

First I made a shell script executable by typing chmod a+x try1.sh in the terminal. Then, when I double-click on try1.sh and select 'Run on terminal', the screen just shows 'No such file or ...
1
vote
3answers
776 views

“cannot open file userpref.blend@ for writing: Permission denied” in blender

I'm using blender 2.69, installed via software centre, and when I save my user preference through File -> User Preferences and click on "Save User Settings" there is a message "cannot open file /home/...
26
votes
6answers
13k views

What if I accidentally 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 ...
48
votes
4answers
11k views

Why does chmod 777 -R / leave the system unusable?

I'm only granting permission to all to do anything but why does the system crash by giving permissions only? I'm only modifying the permission not changing the files.
0
votes
1answer
55 views

Why does chmod have two different meanings for 5?

I think I have a pretty solid understanding of file permissions, but there's one specific set of permissions that has an element I don't understand. The permission set 0755 should show as rwx-rx-rx ...
0
votes
0answers
27 views

Using chmod while installing a program [closed]

I am the only user of my PC, so the file permissions is not an issue, trying to install a program , found the instruction on the net. One step says, “chmod 755 /root/Desktop/”name of the program”/src”...
13
votes
1answer
366k views

How can I chmod 777 all subfolders of /var/www?

I’m running a webserver and FTP server, wherein /var/www is bound to /home/user/www. I set both directories to chmod 777 (which is fine since it’s for testing only). I can upload files into /home/...
0
votes
1answer
36 views

How to fix chmod -R 777 /usr

I know :) I'm an idiot :) I did chmod -R 777 /usr I was able to run chmod -R 755/usr from recovery mode. Now almost all work well. But the Software update and a few other futures still don't work. ...
0
votes
1answer
46 views

How to change access rights for /?

I accidentally changed access rights on / for my Ubuntu 16.04 using sudo chmod 466 /. I was supposed to change access rights for a file but instead I accidentally executed a chmod on / (root directory)...
0
votes
1answer
23 views

Issue with dir is other-writeable but not sticky (blue text, green background on all directories)

Some background: Distro: Ubuntu 16.04 LTS Experience level: Not new to Linux, but not an expert. The issue: When working with SMART Tools to check an external USB drive, somehow I managed ...
0
votes
0answers
14 views

automatic logout system display login screen

I changed permission to /usr/bin/sudo folder. Then I cannot login to my user, getting sudo error root login access. I changed permissions of /usr/bin/sudo to 4755 using root login but my other user ...
-2
votes
1answer
24 views

What is doing this? [duplicate]

When I try to download new software or update (in terminal) I get these errors... W: chmod 0700 of directory /var/lib/apt/lists/partial failed - setupAPTPartialDirectory (1: Operation not permitted) ...
1
vote
1answer
59 views

Ubuntu doesn't set Permissions(chmod) on NTFS files even after Setting Udev Rule

I know the fact that chmod does not work with NTFS. However, I'm trying to set a permission (say 0755) when I mount an NTFS drive using Nautilus. I've already configured a udev rule for that; I have ...
3
votes
3answers
2k views

Root directory '/' locked after using chmod

I accidentally used sudo chmod 3 / which gives a execute and write permission to the root directory, while deleting the read permission. How can I recover from this, I cannot even use sudo now.
0
votes
2answers
979 views

Please settle a Sticky (bit) argument

I got into a good-natured spat with a fellow worker about the nature of the sticky bit. My contention, working from the chmod man page was the the sticky bit, if set, allows only the owner to delete ...
-2
votes
1answer
46 views

chmod not assigning permissions properly?

We are testing osTicket which is an open source ticketing system and have set everything up, but when we try to connect to the page we get blank results with the following error logs: [:error] [pid ...
1
vote
2answers
3k 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?
0
votes
1answer
95 views

Missuse of chmod -R 777 ./ [duplicate]

I ran something like: sudo chmod -R 777 /. In my Ubuntu 16.04 LTS it shows many errors on display, but anyway, the damage was done. Now I can't use sudo sudo: error en /etc/sudo.conf, línea 0 ...
1
vote
1answer
55 views

cant open script as application

I'm trying to install puush on my computer, everything works great until I run chmod +x, after that the script will still only open in gedit. I read through similar questions on this site as well as ...
0
votes
0answers
85 views

How to fix permission changes automatically?

~$ sudo chmod 777 . [sudo] password for aswin: chmod: changing permissions of '.': Read-only file system ~$ I tried to change the permission in the Terminal but it always says chmod: changing ...
19
votes
5answers
73k 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
votes
2answers
2k views

sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700

I get error message always when i work with sudo command. It shows always sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700. A while ago i changed the permission of /var ...
3
votes
2answers
5k views

How to make all new files in a directory executable [duplicate]

I want a way by which whenever I create a new file in a particular directory, I want it to be executable by default. Is this even possible, if so how?
0
votes
0answers
54 views

Can't get correct permissions for /var/www/html/

I've read several threads here talking about this issue and tried all the solutions provided, none of them are working. Whenever I try composer install I get a bunch of errors saying cannot install [...
0
votes
1answer
42 views

Missing Operand

I am new to Linux . I am trying to run this command mhn@ubuntu:~/mhn$ sudo chown www-data/var/log/mhn/mhn.log but getting the following error chown: missing operand after ‘www-data/var/log/mhn/...
3
votes
1answer
3k views

How to make the newly created files inherit the directory's permissions…? [duplicate]

I need to give permission to a directory in such a way that, the newly created files should inherit the same permissions as the directory. You may find a duplicate for this question, but it doesn't ...
0
votes
1answer
37 views

Why won't chmod +s allow me to do stuff in root's stead? [duplicate]

I have a very specific command I'd like anyone to be able to run. For the sake of example, let's pretend the command is ip addr flush dev foo0. I found this and this. Unless I'm misunderstanding ...
1
vote
1answer
2k views

How to give permission to execute Eclipse application?

This one has confused me for a couple of hours. I know the command sudo chmod +x file to give executable permissions, and still I don't get my application to run. For context, I installed Eclipse ...
0
votes
0answers
16 views

How to recover administrator permission and media access for normal user?

I have a dell pc with ubuntu 14.04 lts version for my work. On a spring day, my system administrator removed my system's administrator permissions and removed my media access. He used the following ...
0
votes
1answer
30 views

Adding users and giving special permissions

I have tried different things with chmod and adduser commands but it will take too much time for me to do this. Here is what I try to do: Lets say I will add 3 users to my system. Each user can read ...
0
votes
2answers
6k views

Installing XAMPP

I'm new to linux and I'm trying to install XAMPP I downloaded the file and I cant execute it, I followed the Instruction on http://www.apachefriends.org/en/xampp-linux.html#374 but when I'm trying ...
0
votes
1answer
77 views

Definitive permission to folder

I'm giving full permission in a folder using chmod: chmod 777 /srv/folder Inside this folder many other folders and files will be created. My problem is that the full permission does no apply to ...
1
vote
1answer
70 views

Can't give write permissions to /root?

I am trying, and failing, to give the user jenkins write access to /root. Firstly: Yes, this is not something you would normally recommend doing. But for some reason Jenkins is insisting on writing ...
5
votes
2answers
3k views

Permissions denied to owner, although it is set to 666 in .ssh directory

I recently messed around with the .ssh directory. Made some permission changes, I think and now it won't let me access it anymore. I can access it as the root user (sudo -i) but not as somesh I get ...
0
votes
0answers
50 views

rutorrent / rtorrent - strange permission problems

rtorrent via rutorrent front end was working fine, then I did a sudo apt-get upgrade and all hell broke loose! (and plex stopped being able to access too). Original setup was for all completed ...
1
vote
4answers
56k views

bash: ./install.sh: Permission denied installing intel fortran 2011

I am trying to install Intel Fortran Composer 2011. When I try to command ./install.sh it gives an error: bash: ./install.sh: Permission denied I tried some ways to get pass this. Tried; sudo ./...
90
votes
9answers
113k 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 ...
1
vote
1answer
63 views

Woops. I did “chmod 777 /” [duplicate]

I was in a rush and accidently did "sudo chmod -R 777/". As you can imagine, everything is broken. I can't access sudo either. Is there a solution to this, or will I have to do a clean install?
0
votes
0answers
10 views

How to revert the permission of folders and subfolders [duplicate]

I ran the command sudo chmod -R 777 / . Due to my ubuntu partition is now unlocked. However when I realized my mistake I halted it in between. As a result of which still few files' permissions are not ...
2
votes
1answer
52 views

Auto chmod and launch?

Is there a way to have all files chmoded and then launched automatically? Say when I have my pc off, I insert a usb stick with a game on it, a lot of random files need to be chmoded and then I would ...
0
votes
0answers
15 views

Chmod for a mapped network drive

In Ubuntu 14.04, I have mounted a network drive in Nautilus, by using Connect to Server and entering smb://xxx.yyy.zzz. What I want to do now, is to modify the access rights of the directories in this ...
0
votes
0answers
62 views

New Samsung printer driver wedged with “Cups insecure filter” error, won't print; won't change permissions

I installed the Samsung ULD Universal Drivers for a M2070FW on Trusty. The driver hung with error "Cups insecure filter", refusing to print any test page no matter how many times printer was Added or ...
1
vote
1answer
2k views

Set permissions for future folders and files

I have some trouble managing permits in a folder and relative sub folders. I am working on ubuntu 14.04. I have a software which periodically creates new folders and files inside of a main folder. ...
0
votes
0answers
22 views

LPG-TD planner…executable file problem

I want to install lpg-td-1.0 planner. There is an executable file named lpg-td-1.0...I used chmod +x (with directory) But in terminal I am getting "lpg-td-1.0: command not found" What I am doing ...
0
votes
2answers
141 views

chmod not working in a non super user

I have created a file named *.txt in /home using following command: sudo nano *.txt Then I have changed owner of *.txt to a user that I've created: sudo useradd -c "ABC" sudo chown ABC *...
1
vote
4answers
262 views

Sudoers.d Permissions denied

I am running ubuntu 14.04 in DardDrive. I was taking the Steps for Setting up and Running sudo located here http://snag.gy/JAGgt.jpg. But every I type sudo "whatever" as user ($), I get the following ...
1
vote
3answers
114 views

What will be result of chmod -R 777

I accidentally did a sudo chmod -R 777 . in /var/www/html/mysite folder. What will it result to? I wanted to save some time by not changing my folder before running the command as well as not typing ...
3
votes
1answer
44 views

Ubuntu backup using bash commands/command line

So i accidentally run the command: sudo chmod -R 2777 / Wenever i login, it would only bring up the bash command line interface. Now how can i backup my system using only bash commands? i have ...
1
vote
1answer
76 views

ftp> how to recursively search and change mode?

Sorry if that was a repeated question! all my search results leads to 'SSH' results... I'm asking about FTP, How can I recursively change mode from FTP using the terminal? Again: I'm using FTP, not ...