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

learn more… | top users | synonyms

0
votes
1answer
18 views

Problems with permissions with squid3

I have been trying to get squid to work. I have a configuration for the cache to be created in the directory /var/cache/squid3/. However, I get this error when running squid with the "-z" tag (It is ...
11
votes
2answers
671 views

What is the Ubuntu equivalent of OSX `chmod -h` flag?

In OSX I can set the permissions of the symlink itself (instead of the thing it points to using the -h). From the man page: -h If the file is a symbolic link, change the mode of the link itself ...
1
vote
0answers
22 views

Can't change folder permissions using `ispconfig` [closed]

How can I change the permissions for all my folders . Note: I have root access to my server. P.S. "Opération non permise" = "Operation not permitted" lsb_release --short --codename&&uname ...
1
vote
1answer
20 views

How to change a program and all its subroutines executable?

for running a program, I need to change its install file to a executable file. I can do that, but my problem is that program calls some subroutines and those need to be executable too. Is there any ...
-1
votes
0answers
15 views

Everything is locked up, and I cant use the terminal or properties to change permissions [closed]

Everything on my Linux box is locked up, as in, root only, and I cant use the terminal or the properties, and yes i have tried sudo su, and chmod, and chown, nothings working. Here is an image.
-2
votes
1answer
25 views

chmod u-x problem in case statement in Shell Script

I want to give rights to a file using a menu (exec,write,read). If you look closely I read value B( the file's name) then I use the case function to do the 1)exec / 2)write / 3)read function for ...
1
vote
1answer
25 views

Trying to access debian/scripts and debian/rules

I am trying to rebuild the kernel because I want to change jiffies to 1ms. I'm following a turorial and it is stated that I shall do chmod a+x debian/scripts/* but I can not find the debian folder ...
-1
votes
0answers
33 views

Permanent permission for /dev/ttyS0

i have the exact same problem as this post but even after adding the user to dialout group the problem stands . the problem is i have to run the command : sudo chmod 666 /dev/ttyS0 every time ...
1
vote
1answer
34 views

Why is my script file executable on a virtual machine?

I have ubuntu installed on a virtual machine in Windows. There when I run a script I just type sudo ./blabla.sh in the terminal to run it. Then I installed ubuntu from same iso file directly on a ...
-1
votes
1answer
46 views

chmod +x doesn`t work [closed]

I am trying to install this widget. When I use chmod +x .start-conky nothing heapens, file .start-conky still is a text file.
0
votes
1answer
37 views

Chmod all files getting uploaded automatic

Is there any way to chmod 777 all files getting uploaded to a folder throught FTP? I'm using vsftpd and apache2, and I am having a camera to upload pictures taken once an hour to a local server over ...
0
votes
0answers
18 views

chmod doesn't change permissions [duplicate]

I'm using Ubuntu 14.04 and I'm not able to change the permissions of any file inside a USB portable drive. The USB drive's path is /media/myuser/Expansion/. I tried the command sudo chmod 777 ...
0
votes
1answer
50 views

Issues with executable: file not found after using chmod to fix permissions

I have downloaded and extracted the Linux binary for the blackbox PDDL planner, and I'm trying to get the blackbox file to execute. I changed to the directory with the file and tried ./blackbox, which ...
2
votes
1answer
40 views

Change permissions to a specific user in Ubuntu 12.04 [closed]

How can I change the permission (555 or 755) to a user in a specific folder in Ubuntu 12.04. I used this command, but it didn't work sudo chown -R username:group directory Thanks,
2
votes
1answer
149 views

Why isn't another member of a group able to use a directory?

I have created a directory named IDE in /opt using following command sudo mkdir -p /opt/IDE Then I have changed the owner of IDE directory. sudo chown shantanu:csedev /opt/IDE Above command ...
0
votes
2answers
35 views

What are the default permissions of directories in home (Desktop, Downloads, etc.)

I accidentally ran chmod 777 * in my home folder and it changed all the directory permissions (but not for the files). How can I undo this?
0
votes
0answers
36 views

Can't install program using terminal

I got this problem when I trying to install java and netbeans package and internet download manager softwares. I download these files from their websites And try to use command chmod +x ...
0
votes
0answers
34 views

restore to original chmod and chown settings

I nuked my whole system attempting to make some "minor changes". The errors ranged from org.freedesktop.dbus.error.spawn.permissioninvalid to setuid helper is not correct to must be owned by uid0 ...
0
votes
1answer
42 views

Who can change a file permission or ownership in ubuntu? [duplicate]

Who has the privilege to change a file permissions or ownership in ubuntu ?
0
votes
1answer
18 views

Webserver permission problem

I've a permission problem on my dedicated webserver, but I'm not able to understand what's I was doing wrong. Ubuntu 14.04 Kernel 3.19.2 Versione Apache 2.4.7 Versione PHP 5.5.9 mysql 5.5 (all from ...
0
votes
1answer
52 views

I can't run a program in Ubuntu 14.04

I've got a problem with a program I downloaded last week from GitHub. I tried to chmod it (a+x), tick option to run it as a program, but it didn't help. I don't get any notifications. It just does ...
1
vote
2answers
53 views

Change name of executable file when using chmod +x

I have python file my_script.py When I run: chmod +x my_script.py I end up with two files that are called my_script.py, one executable file and one python file, when I try to get the size of the ...
0
votes
1answer
35 views

can't change file permissions of key file [duplicate]

I have a .pem file. The normal chmod [4/6]00 [key_name_here].pem command doesn't work. The permissions are stubbornly stuck at 444 or 644.
0
votes
1answer
37 views

How the heck do I make jar files executable?

I am running Ubuntu 12.04 on my Toshiba Chromebook 2 via crouton (I'm using the xfce4 desktop enviroment so don't give me Unity fixes) and I am trying to run a .jar program through OpenJDK6. I just ...
0
votes
1answer
32 views

Mounting hard drives problem

Why doesn't Ubuntu mount hard drives automatically when it's launching? Moreover, I cannot chmod +x to the files in the hard drives after mounting. They are formatted as NTFS. If NTFS is not ...
0
votes
0answers
21 views

Enable php pcntl: Cannot Create Regular File

I am trying to enable/install pcntl and I get the following error after running make: cp: cannot create regular file `/usr/lib/php5/20100525/#INST@24959#': Permission denied I am sure it is a ...
0
votes
1answer
28 views

Not detecting any external devices [duplicate]

I've recently installed Ubuntu 12.04 it was working fine unless I messed up with a command. I change all user permissions(as they call ago permission in Ubuntu) by running command sudo chmod -R 777 /. ...
1
vote
1answer
48 views

How do I revert to the previous permissions for a folder?

I changed permission of folder by chmod -R 775 example and now I want change it to previous permission mod, but I don't know what was that number instead of 755. That folder is my project folder and ...
0
votes
1answer
50 views

Unix permissions - what EXACTLY is the “owner group” (note: singular)?

I'm programming a Fuse file-system. So far so normal, didn't encounter unsolvable problems (except performance). However, I read the following articles: http://linuxcommand.org/lts0070.php ...
1
vote
4answers
360 views

Android studio only starts with sudo

I just installed Android Studio, but I can only start it with root permissions: sudo ./studio.sh otherwise it fails with Error: Could not find or load main class com.intellij.idea.Main I am not sure ...
-2
votes
1answer
38 views

Is there any difference between umask value and chmod value?

I'm using umask in fstab settings. What I know is if i set 755 with chmod, the permission will be rwxr-xr-x. But, when I use umask in fstab with 755 value, permission that i get is ----w--w-. Giving ...
11
votes
2answers
1k views

What is the first number for in a 4-number chmod argument (such as `chmod 4555`)?

When I install a program, it recommends me to do chmod 4555. Okay, i know about values if I just use three numbers. For example chmod 555 test-file will give -r-xr-xr-x 4 for write, 2 for read ...
0
votes
0answers
63 views

Folder Permissions

I am having trouble serving a folder out using samba. I have already successfully shared a folder but my folder permissions are jacked up: [samba is successfuly shared, flexraid_pool is a folder I ...
0
votes
0answers
65 views

Give read/write rights for newly created files inside folder for users in group

I have created a user named ftpuser and a folder for him /home/ftpuser/files I added an existing user 'auser' to 'ftpuser' group sudo usermod -a -G ftpuser auser Last, I gave group ...
0
votes
0answers
2k views

Chmod error changing permission read only file system

I have three main partitions on my disc /dev/sda: /dev/sda1 2048 117186559 58592256 83 Linux /dev/sda2 117186560 128905215 5859328 82 Linux swap / Solaris /dev/sda3 ...
0
votes
1answer
56 views

Cannot edit php5.fcgi owned by Me with RWX owner permissions

Ok, I kind of thought I understood Linux permissions and then I encountered this one. I am running Ubuntu 14.04 LTS in a virtualbox on my Windows 7 pro laptop. All udpates are applied to windows, ...
-1
votes
1answer
295 views

Permission denied apache even after chmod

I am trying to setup my LAMP server on ubuntu when i am about to change mod chmod of the files in the /var/www directory but when i try : sudo chmod 0644 www/* -R and sudo chmod 0644 www -R ...
0
votes
0answers
17 views

could not connect to server

To solve an error that said ( permission denied ), I tried to sudo chown –R edxapp / Then error appear says: must be setuid root. And to solve that I tried chmod u+s /usr/bin/sudo but then ...
1
vote
2answers
48 views

Setting files and directories to match umask setting recursively

Is there a way to go into my home directory and recursively set files and directories to match my umask setting? The issue is, way back when I started using linux, I didn't understand permissions. In ...
1
vote
2answers
230 views

`sudo chmod +x *` caused me cannot open anything

Today I used sudo chmod +x * -R in my $HOME folder, actually I didn't want to use it in $HOME folder, it was an accident. Afterthat I tried to use sudo chmod -x * to fix it. But now, I couldn't open ...
0
votes
0answers
124 views

Accidentally gave chmod -R 777 /usr in Ubuntu 14.04.1

I found few questions related to chmod in / but not in /usr. While changing permissions for specific directory, i gave sudo chmod -R 777 /usr. When i reboot the system, the system is completely ...
3
votes
0answers
42 views

chmod -R 777 /etc, I have no name! [duplicate]

I really screwed up and did sudo chmod -R 777 /etc After searching for hours for an answer I eventually booted into recovery mode and did: mount -o rw,remount / # because the file-system was ...
0
votes
3answers
898 views

Chmod is not working as expected

When i am about to change my file permission like this $ sudo chmod a+x *.* This error appear chmod: cannot access ‘*.*’: No such file or directory And when i want to change the permission ...
2
votes
1answer
189 views

can't access to a folder even after chmod 777

I just created a new user, and I want to give access to a folder. I have done: chmod -R 777 ./p and this is the result lisa@linux:/media$ ls -halt drwxr-xr-x 27 root root 4,0K dic 11 ...
-1
votes
1answer
137 views

Is it okay to chmod 770 root directory “/”?

Output of ls: $ ls -lh / drwxr-xr-x 3 root root 4.0K Dec 9 18:56 boot drwxr-xr-x 17 root root 4.2K Dec 10 13:57 dev drwxr-xr-x 92 root root 4.0K Dec 10 13:57 etc drwxrwxrwx 9 lyndon root ...
0
votes
2answers
28 views

Site creation script - missing chmod permissions

We have recently taken ownership of a Linux server, on the server is a site creation script which works but seems to be missing the necessary chmod folder permissions (755?). I think we need to add a ...
0
votes
1answer
82 views

Boot for USB to fix file permissions

I will start from the beginning. I was a noob and ran a really bad command in Ubuntu and now I can't do anything with sudo. I ran: sudo chmod 644 / I was instructed to boot from a liveCD or ...
0
votes
0answers
35 views

Correct permissions or undo a command [duplicate]

I will start this question with I'm a noob and I broke linux. Probably shouldn't have ran the command I did but now I cannot use sudo for anything not sure how to undo fix what I did. The command I ...
2
votes
2answers
82 views

chmod only certain mime-types

I'm using file --mime-type * to find the mime-types of all files in a selected directory. Many of these files should not be executable and are .conf or their type is text/plain. Is there a ...
0
votes
2answers
158 views

User Rights letters to numbers

I am having Problems converting user rights. I want to assign the following rights to certain files/folders but dont know hat to translate them into a format which chmod will work with like chmod 755. ...