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
1answer
16 views

After setting chmod -R 0700 still current user can see and edit the files

I have a folder in my server I am setting this folder rights by sudo chmod -R 0700 myfolder when i print rights with ls -l everything is fine nobody has any right except root but i can open the ...
0
votes
1answer
17 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
524 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 ...
1
vote
1answer
805 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 ...
0
votes
1answer
124 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 ...
7
votes
3answers
34k views

default permissions for /var/www

I was trying to open a file and write to it with PHP at /var/www folder but it wasn't working so I did sudo chmod 777 var/www now I want to set the permissions for var/www to the default. what are ...
4
votes
2answers
438 views

What's the difference between + and = when using chmod?

I read everything about chmod, but I don't get something. If I write chmod u=rwx file this "affects" me for all rights on the file, and if I write chmod u+rwx file this "adds" me all the rights on the ...
15
votes
2answers
13k 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 ...
1
vote
4answers
977 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
183 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
0answers
21 views

sudo chmod 664 “/” -R

The problem: sudo chmod 664 "/" -R I've canceled it after a few seconds but here it is. What all should I do through Live CD? sudo chmod 755 "/" -R or just sudo chmod 755 "/" ? Thanks
1
vote
4answers
59 views

Understanding linux file system modes

I've read through over 10 articles, and am trying to wrap my head around the linux file system. There is one point I am trying to get that I can't figure out. Forgive me for sounding very dumb: When ...
-1
votes
1answer
107 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.
15
votes
4answers
40k 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
0answers
34 views

no sufficent permission to start xserver

i've wrongly gave " chmod 600 / " command i supposed to gave " chmod 600 /swapfile , i was creating a swap space.... .....and now it feels like my user can't no longer have rights to access and run ...
0
votes
2answers
27 views

How to control the permissions of a mounted usb drive?

I have multiple USB drives, used for different purposes, and I've noticed they have different permissions when mounted, and, moreover, a chmod command has no effect. Why is this and is there a ...
14
votes
4answers
8k 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 ...
0
votes
1answer
54 views

I accidently ran 'sudo chmod -R 775 /' and it completely broke my OS/Shell [duplicate]

So I accidentally did sudo chmod -R 775 / when I meant to do sudo chmod -R 775 ./. I quickly realized and hit Ctrl^C, but not in time to save everything. I realize this is a really stupid mistake and ...
0
votes
0answers
36 views

How to change owenship of a directory from root to all uses in Ubuntu 14.04?

I am a Ubuntu newbie and want to change permissions of a directory to a user, say x. I searched many things chmod 777 <dir>/ did not work. I referred to Change folder permissions and ownership ...
8
votes
1answer
204k 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 ...
0
votes
0answers
65 views

EC2 - chmod: cannot access ‘mypemfile.pem’: No such file or directory

I download pem file while launching t2.small instance. When I try to connect it via ssh it say no such a file in directory. But am sure that pem file is in directory. $ ls mypemfile.pem ...
9
votes
3answers
18k 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 ...
2
votes
1answer
20 views

Warnings and errors appearing on site after changing ubuntu user permissions Amazon EC2 server

My site is running on a EC2 Amazon server under Ubuntu/Apache2. My site was running fine until I changed the permissions for user 'ubuntu' by doing this command: chown -R ubuntu /var/www/html ...
0
votes
1answer
49 views

How to copy the permission of root to current user?

I made a mistake. I copied a directory with many sub-directories and files using the sudo command. Consequently only root has permissions to do anything with the files. Can I somehow duplicate the ...
0
votes
2answers
64 views

Setting permission for Xampp installation directory. see details

I know bit about setting permission but i'm little in a mess with it. I'm new to ubuntu so i get little confused and took much time to solve a little problem. I have installed xampp with installer ...
0
votes
1answer
120 views

Why I can't install TomCat 8 on this Ubuntu 15.04 system? (I obtain an error when I perform chmod statment)

I am not yet a Linux guy and I am finding some difficulties trying to install TomCat 8 on an Ubuntu 15.04 system that I have to use as development environment. So I am following this tutorial (I ...
0
votes
3answers
66 views

Is it safe (secure) to change the owner of the html/ folder in Apache?

I know how to use chmod and stuff so that is not the question. I have a little server (Ubuntu LTS ) running with Apache on it with the standard folder in /var/www/html/. By default root is the owner ...
1
vote
1answer
56 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 ...
4
votes
3answers
4k 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 ...
1
vote
1answer
58 views

I changed the permission for /etc folder. Sudo is not working after that

I changed the permission for /etc folder to 777 with chmod. When I try to run Sudo after that it refuses to work. I found a few fix, such as going to recovery mode to fix things but recovery mode is ...
-1
votes
1answer
43 views

How to undo or set back to default chmod -R 755? [closed]

What I was trying to do is installing "wordpress" in my localhost on (ubuntu 14.04) i.e my path for localhost is " home/deepak/php " Now what i did is this in terminal: sudo chown -R ...
4
votes
4answers
7k 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
0answers
30 views

Permission change after moving file? [duplicate]

I want to run a bash script in a directory /media/aliakbar/New Volume(internal drive)/further/path/to/file . The problem is: with chmod +x the file's permission is not changed (proof: I couldn't ...
0
votes
1answer
463 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 ...
0
votes
2answers
33k 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 ...
0
votes
0answers
14 views

Chmod and Apache2

I have a really simple question about Ubuntu chmod. As a main user (not root) "katsarov" which is part of www-data (apache) group I cannot edit the files, though they have 664 chmod. I want to be able ...
13
votes
2answers
763 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
1answer
45 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
vote
0answers
55 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 ...
0
votes
2answers
5k 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 ...
-2
votes
1answer
45 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
36 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
vote
1answer
56 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 ...
2
votes
2answers
10k 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
179 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
63 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,
0
votes
2answers
53 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
46 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
72 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 ...
8
votes
4answers
18k 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 ...