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

learn more… | top users | synonyms

5
votes
3answers
23k views

Default file permissions for php user www-data

I have a php installed on my ubuntu machine. The web root is /var/www I set the permissions for this folder like so: sudo chown -R ftpuser:www-data /var/www ftpuser is the user I set up so I ...
0
votes
2answers
2k 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 ...
1
vote
1answer
2k 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 ...
15
votes
2answers
3k views

Why don't I have a password for “su”? Problems with “sudo”

I have installed Ubuntu using the GUI, giving myself a password and everything. I do not intricately remember the process. However, what worries me is that I don't know the following password: $ su ...
10
votes
3answers
14k 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 ...
0
votes
0answers
50 views

How to get samba serve to follow chmod rules

I am in the process of setting up a samba file serve which I got to work pretty well the only issue that I am now stuck with is the permissions: The set up that I am trying to achieve is to allow one ...
0
votes
1answer
38 views

chmod directories and files in one command?

I have a directory "project" that contains a set of subdirectories and files. I want to give 777 permission to the directories and files from my 666 in the same directory with chmod command in my ...
3
votes
1answer
2k 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 ...
0
votes
1answer
38 views

How to submit a feature request for chmod linux command

Note: I believe this question doesn't fit the SO guidelines for question types, but if you can, please move it to appropriate section of the SE network or please tell me where it would be appropriate ...
4
votes
3answers
2k views

problem with chmod command

I don't know what is happening experimentx@workmateX:/var/www$ sudo chmod 0777 -r /var/www/ chmod: cannot access `0777': No such file or directory experimentx@workmateX:/var/www$
1
vote
1answer
45 views

Default group permissions for /var folder

I accidentally ran sudo chmod -R g+rw /var instead of sudo chmod -R g+rw /var/www. This means that for every file, the group owner now has explicit read-write access. I have already seen an example ...
0
votes
1answer
26 views

Chmod crash version 13.10

I was watching a command line reference tutorial and testing out two commands, CHMOD and CHOWN. I ended up changing my root folder's permissions. What should I do? Version 13.10.
3
votes
2answers
2k 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 ...
10
votes
4answers
3k views

What if I accidently 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
4answers
2k views

How do I mark a .jar file as executable on Xubuntu 13.04?

I'm trying to get the minecraft.jar file to execute , but the check box won't come up when I go to Properties > Permissions. I don't know much about the terminal and its commands so if someone could ...
1
vote
1answer
54 views

How to let a user execute a script owned by root? Setuid doesn't seem to work anymore

I have some bash scripts that I use with the user 'root' to manage iptable rules. The problem is that I want these things at the same time: The script must be owned by root Permissions must be 700 ...
1
vote
2answers
173 views

Can't change permissions on extracted files Ubuntu 13.10

I'm trying to install a program from the *.x86_64 file but it seems I don't have the right permissions to do it. Even if I right-click and go in the "Permission" tab, when I try to change anything ...
1
vote
3answers
52 views

How do I unprotect a file which is owned by root?

12.04 LTS and I mistakenly protected a file named set using: chmod 700 /home/jatin/Desktop/set How do I unprotect it?
0
votes
1answer
52 views

Hard drive (hfsplus) will not allow me to chown or chmod

I tried chmod and chown, neither worked and I got a message like this, repeated for every file in the drive. chmod: changing permissions of ‘folder/filename.id’: Read-only file system failed to ...
0
votes
0answers
16 views

Changed all files and folder permissions to 755 and can't log in [duplicate]

I accidentally ran the command sudo chmod -R 755 while trying to run LAMP. I was getting a 403 permission error so I tried to fix the permissions. I'm running ubuntu 13.10 and now I can't log in ...
0
votes
0answers
58 views

sudo not working due to incorrect permissions

I broke my ubuntu server by typing the command chmod -R 777. Im trying to get it back to normal. Problems: When I try to use sudo, I get the error: sudo: unable to open /etc/sudoers.d/README: ...
1
vote
1answer
115 views

Ubuntu corrupted log files

It seems that all my log folders located in /var/log are turning into files. For example, if I try to tail /var/log/apache2.log it will say "no such file or directory" I can see it in the file ...
0
votes
2answers
73 views

How do I set permissions on a network-shared folder?

I used system-config-samba to expose a folder on the network with no user authentication. But I got permission failures, so I used chmod 666 shared_folder. When I go to \\computername from a ...
48
votes
8answers
37k 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
2answers
121 views

Is possible to make virtual host in a NTFS partition?

I am using Ubuntu and Windows. When I use Windows, i can't access my file in var/www of my Linux partition. So I try to make virtual host and DirectoryRoot in my NTFS partition. I will combine WAMP ...
1
vote
1answer
28 views

Getting issue with file permissions in Ubuntu 10.04

I've a development desktop having Ubuntu 10.04, Apache2 & PHP 5.3.2 installed. I've given 0777 permissions to my web application root folder and Apache2 is also running under current username. But ...
0
votes
1answer
355 views

Sharing folder with guest

I am trying to allow access to the guest account to a folder at /share I have chmod 775'd and even 777'd the folder to no avail. I know the guest account is locked down so it cant access /home, ...
3
votes
1answer
314 views

Add Group Permission to Run chmod Command on Group Owned Files

I've been searching for about an hour now and all google ever returns are hits for how to use chmod. I want to be able to grant users that are part of a unix group permission to run chmod on files ...
1
vote
1answer
39 views

In ubuntu matlab execution file cannot be run

I have stored my matlab installation in one of the partitions.But ubuntu doesn't recognize the matlab file as an executable file even after executing chmod +x command. Kindly help me to resolve the ...
0
votes
0answers
84 views

How can I get my ASIC miner to “initialise” on startup/login?

Based on the document from butterfly labs here: https://forums.butterflylabs.com/showwiki.php?title=Tutorials:ASIC+Mining+on+Ubuntu+and+other+Linux+distros I am using my ASIC miner successfully ...
0
votes
3answers
302 views

Permission drwxrwxr -x [duplicate]

I need some help about permission. I had a permission drwxrwxr-x but I try to change the permission with chmod 755 /folder/ and after that I receive permission drwxr-xr-x but I would like to change it ...
1
vote
1answer
36k views

how to make chmod 777 all /var/www subfolders

im running webserver and ftp server, where my /var/www is binded on my /home/user/www i made both directory at chmod 777 (which is fine since its for testing only) i can upload files inside ...
0
votes
0answers
32 views

chmod a partition read-add files only

I am looking for a way to chmod an entire drive partition so that you are able to read and add files but not modify or delete them is there an easy way to do that? I have looked arround a bit but ...
0
votes
3answers
63 views

Having trouble with chmod

Before I would write "sudo chmod 777" and then the name of the file or folder but now it doesn't seem to change any permissions. I looked at multiple tutorials on how to use chmod and can't figure ...
1
vote
1answer
100 views

restore permissions of ubuntu 10.04 after running “chmod 700 -R /” as root [closed]

I have run: chmod 700 -R / with root access on ubuntu 10.04. Is there any way for recovering from this situation other than reinstall? Then I again ran: chmod 777 -R / to fix it and now I have ...
0
votes
1answer
41 views

Why Kate can't edit my tex-file

I tried to edit a file by using Kate. But it said my file is read only (R/O). How can I change that? I tried sudo chmod a+rw kirjeet.tex & kate kirjeet.tex
1
vote
4answers
192 views

Why am I not able to use chmod 000 for a folder?

I can't chmod 000 for a folder in Ubuntu 13.10
1
vote
2answers
3k 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 ...
0
votes
0answers
53 views

12.04.03 installation error

When trying to install 12.04 from USB, erasing a corrupt version of 10.04 (I had run chmod 777 -R / on it with root access), I get the following error: kernel panic - not syncing : attempted to kill ...
0
votes
1answer
1k views

Can't change file permissions!

I just can't change any file permissions even when I am logged in as root. I tried changing the permissions from both terminal and i got no errors but the permissions remain the same. And when i try ...
0
votes
1answer
518 views

changing chmod 755 to 775 on a directory will result in permission denied when connecting with sftp

When I change chmod in my /home/frans from 755 to 775 I get the following error when connecting with ftp fatal: bad ownership or modes for chroot directory "/home/frans" I'm a linux newbie and i'm ...
0
votes
1answer
37 views

Is chmod +x ./expand_lapw correct ?

I'm new user of Ubuntu. I have used redhat, however I wrote : chmod +x ./expand_lapw But there is nothing happen. Please let me know ?
2
votes
2answers
593 views

User www-data in custom group does not give other user write access

This is somewhat confusing for me so i hope someone can quickly explain the run down once and forall. I have a User, "John", and group created named "John". I make john a "Primary group members" of ...
2
votes
1answer
187 views

What are the default permissions for /root?

Not realizing what directory I was in, I did a "chmod 777 ." in /root. Now I would like to set the permissions for /root back to the default. Can someone please tell me the correct default permissions ...
0
votes
1answer
9k 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 ...
11
votes
3answers
6k 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 ...
0
votes
1answer
57 views

delete the read permission from a file

So, let's say I have a file named FILE. Whenever someone wants to edit or read it (for example cat FILE in terminal), it should ask for root password. How to do this? I suppose there's a chmod ...
0
votes
1answer
103 views

Unable to change permisions on windows partition disk

I need to change permissions of files in my /media/MAVEN/Projects MAVEN is my windows disk partition. The permissions on the Projects folder are: :/media/MAVEN/Projects$ ls -la \total 340 drwxrwxrwx ...
1
vote
0answers
201 views

Changing permission for 'Public' folder always failed

I have 2 PC using ubuntu(I assume PC 1 and PC 2), and I always share a file or folder for each other. I know that I have to right click first, choose Sharing Options and check Share this folder. ...
0
votes
0answers
256 views

Prevent user from deleting files but allow him to add new ones

I've got the following scenario: A PC with lubuntu 13.04 with one user. This user isn't in the sudo group and doesn't have a password. I've set a root password and changed the permissions of chmod ...