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
10 views

Cannot Write to www and update wordpress at same time

I have LAMP installed on my Ubuntu 14.04 server and am using apache as a web server. I am going to be using the web server for Wordpress primarily. The problem I am running into is that I cannot ...
0
votes
0answers
16 views

chmod+x is not working at ubuntu on AWS EC2

I am trying to run a hadoop word count code in python at the Amazon EC2 environment. I am using Ubuntu 14.04. I run the following command chmod a+x test.sh and expect to run it test.sh as a command. ...
1
vote
0answers
54 views

Cannot chown or chmod using sudo anymore

I was trying to make an adjustment to the /etc/sudoers file, and I accidentally corrupted it. I restored it via the grub and using the Ubuntu 14.04 default. But now it seems I can change ownership ...
0
votes
1answer
32 views

Can I write a file with only read permission?

I just set a read only permission to a file using chmod 400 filename.txt after that I open the file via vi editor and edit and try to save using :w then is says E45: 'readonly' option is set (add ! to ...
1
vote
1answer
106 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. ...
52
votes
8answers
45k 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 ...
2
votes
2answers
440 views

Can't mount USB 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 ...
4
votes
3answers
2k 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
2answers
30 views

chmod is not working

I am unable to change the privileges of the directory or file which is not in desktop using chmod. while it is working properly for the directory and folders of desktop. am using the command chmod ...
1
vote
2answers
67 views

How to prevent directory from being deleted by user?

Suppose a directory dir1 is created by sudo on Desktop. sudo mkdir dir1 Then I applied chown and chmod as following: sudo chown root:root dir1 sudo chmod go-rwx dir1 Now dir1 is only accessible ...
0
votes
1answer
21 views

Script for changing access rights of multiple files and directories?

I want to create a script that changes the access rights for all files and folders in a specific directory tree. All users should have read and write access for all files and directories. Does anyone ...
0
votes
2answers
4k 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
2k 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
64 views

Can not connect to Ubuntu 12.04 server using SSH [closed]

Yesterday I have posted question for creating FTP users and set access permission. Here is the URL. Create FTP users with limited access only to home directory Ubuntu 12.04 Based on Answer I have ...
1
vote
1answer
26 views

Access to different directories

I have recently moved to Ubuntu 12.04 and noticed that in some directories I can't even create a directory or file (e.g:/var/lib). I know about the command chmod, but is it appropriate to use it in ...
1
vote
3answers
7k 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
2answers
22 views

How to make a script that will make another script in the same folder executable?

How to make a script that will make another script in the same folder executable? I don't want to worry about path since it will be in the same directory. So it should be something like(i'm trying to ...
0
votes
0answers
25 views

Problems with file permissions in ubuntu 14.0 [duplicate]

Good afternoon to all Here I have a problem with permissions, use ubuntu 14.0 configured with samba. The details are in the following example: There is a folder called "isolated" contains folders ...
1
vote
2answers
44 views

Chmod ubuntu desktop fail

I accidentally did chmod 667 on /home/user/Desktop/ and now it is behaving strangely. How can I reverse the damage I have done?
0
votes
1answer
43 views

Problem with access to mounted drive

I can not make my newly mounted hdd work properly. First and foremost, I can not access it to read and write any file or folder even after changing the privileges to +775 and even +777 (though I can ...
0
votes
1answer
64 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 ...
0
votes
2answers
43 views

Directory with readable and unreadable files

I am root. I want to make a directory, SuperSensitiveDirectory, private so that only root can even read the files inside it and its sub-directories. There are passwords in these files, and they should ...
12
votes
5answers
899 views

Difference between +x and ./<script> and sh ./<script>

Are there any actual differences between running a script with [sudo] sh ./<script>.run instead of [sudo] chmod +x ./<script>.run [sudo] ./<script>.run
3
votes
1answer
128 views

Is there any way to make sure that any file created in a specific folder has a certain group as owner?

I know that you can set a directory up so specific groups have access to it, but is there any way to set it up so that any new files created in it automatically have a specific group as the group ...
1
vote
1answer
62 views

Give permission to a specific group without owning it

I have created a group named newgroup. But I didn't add my user to this group. Now I want give the write permission to this group for a specific file named sample.txt. I can use chmod if I am the ...
1
vote
0answers
33 views

Is chmod out-of-place? [closed]

I try to chmod some files and I get the error "disk quota exceeded": It's true that I don't have that much space remaining in the filesystem where I use chmod, ...
0
votes
1answer
486 views

sudo: unable to stat /etc/sudoers.d/README: No such file or directory

Whenever i use sudo command i get this message: sudo: unable to stat /etc/sudoers.d/README: No such file or directory i ran into this trouble when i was strugling with chmod using which i changed ...
1
vote
1answer
32 views

Joomla Files/Folders Permissions in Ubuntu

The recommended way of setting files and folders permissions in the joomla root directory is the following (from the help.ubuntu website) cd /var/www/joomla/ sudo find . -type f -exec chmod 644 {} \; ...
0
votes
0answers
259 views

Unable to change permissions for apache file 000-default.conf

I am trying to change the permissions for the apache file /etc/apache2/sites-enabled/000-default.conf when I input the command sudo chmod 755 000-default.conf the file still stays to ...
0
votes
0answers
36 views

chrome does not load

hey there i followed the instructions on this page to change permission of all files in a directory in /var ...
1
vote
2answers
147 views

automatically set sudo chmod 777

is there a way to automatially set sudo chmod 777 for all the files, folder and subfolders in a directory. The sudo chmod 777 should automatically be set when a folder or a file is created in the ...
1
vote
2answers
275 views

Peculiar permissions/group trouble [closed]

I've tried creating a separate user account for rtorrent and sickbeard (a torrent downloader) so everything isn't running as root but I've bitten off more than I can chew. I've chmodded 2770 (setgid, ...
1
vote
4answers
371 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
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 ...
1
vote
0answers
76 views

User has no permissions in sftp

I installed LAMP in my Digital Ocean droplet. I have successfully logged in to SFTP. However, when I try to do anything in my /var/www/html/ folder it says permission denied. It may be worth ...
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
87 views

How can I set different permissions for files and folders separately?

I want to apply 644 permissions only for all files in current directory, and 755 permissions only for subdirectories in current directory with chmod
2
votes
1answer
8k views

File permissions won't change

sorry fresh user. I installed about 9 days ago and had issues with Unity disappearing which took 5 days of headaches to fix. It never did fix, I reinstalled. I set up Plex (media server) and while ...
8
votes
3answers
15k 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 ...
0
votes
1answer
35 views

Repair filesystem permission

I accidentally executed sudo chmod -R 777 / I was actually trying to change a specific folder permission recursively, btw i did stop the command before it changed everything. But now, i can't ...
10
votes
3answers
18k 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
26 views

Django chmod using wrong user:group

I have installed django and some other services to start up one front-end community forum. However i've managed to do it everythings run but i have problem with CHMOD permissions. My nginx server ...
0
votes
1answer
30 views

Write permissions not allowed on my USB key

I can read/write my USB key normally on Windows XP. On Ubuntu 12.04 I can only read it. I tried sudo to chmod with 777 my USB key but Ubuntu does not allow me that. Why this problem happens ? How ...
2
votes
1answer
103 views

Can't access home folder

While installing Matlab, I mistakenly typed sudo chmod +x ./java in the home folder. And I got i/o error that you are not allowed to access the home folder. Suddenly everything in my home folder ...
0
votes
0answers
9 views

How to automate CHMOD [duplicate]

How do I make the default value when upload a file via FTP for it to be 777. Like a have a ubuntu server, and one of the users has an application that created files in his folder, how do i make the ...
6
votes
3answers
24k 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 ...
15
votes
2answers
4k 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 ...
0
votes
0answers
159 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
89 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 ...
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 ...