Tagged Questions

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
2answers
348 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.
2
votes
0answers
26 views

Revert system fie premissions

I have mistakely changed the permission of the entire etc directory to 777. Now I'm getting frequent errors like ... is world writable! Is there a way to revert back to the default permission? ...
0
votes
0answers
24 views

how to rollback from giving permission to all files

I am new to ubuntu. while working on terminal unfortunately i typed the comment sudo chmod -R 777 / from root so it prints lot of lines with not permitted strings at end..but after some seconds the ...
0
votes
1answer
27 views

Undo wordpress chmod?

firstly im new to ubuntu and I did something im not sure of. I was trying to chmod wordpress folder because it was having problem not having permission to do anything. (Already installed xampp) ...
0
votes
2answers
40 views

Hi i am unable to change the permission of a file using chmod , plz advice

chmod -x filename doesn't work. when I execute command like chmod -r filename chmod -w filename chmod -x filename they run without any error. But the permission of the files doesn't get affected. ...
1
vote
2answers
160 views

Linux dropfolder where users can't delete files

I am working on a file server project for school and I am using samba to share the folders. I have been playing around with the folder permissions but I can't seem to figure out how to make a drop ...
0
votes
1answer
51 views

Change the permissions of files and directories excluding one directory

I'm trying to change the permissions of files and directories, excluding one directory though. What I've got is: find ! -name test -exec chmod -R 700 {} \; test being the directory that I need ...
-1
votes
1answer
40 views

unable to change permissions

Using Ubuntu 14.04 LTS, I want a text file not to be executed when opened in nautilus or dash. ls-l shows this line for the regarding file -rwxrwxrwx 1 root root 1310149 Sep 20 10:28 then i run ...
0
votes
1answer
53 views

What is the exact syntax for chmod?

I want to give the file OpenRocket-13.11.1.jar executable permission by using chmod. So what has gone wrong with this command: /HomeFolder/Downloads chmod +x OpenRocket-13.11.1.jar It says no ...
0
votes
0answers
89 views

Trouble installing Netbeans

I am trying to install Netbeans 8.0.1 on my Ubuntu 14.04 OS and I am following the install instructions via ...
-1
votes
1answer
84 views

sudo chmod 755 /dev/sda7 -R simply returns a new command prompt line?

I am logged into my computer through the guest account, because i am unable to login through the master/admin. account via user interface. (Simply a blank, blue screen appears upon login.) So i'm ...
0
votes
2answers
27 views

What happen if the executable permission of chmod is revoked

What to do if I change the executable permission of /bin/chmod? How to recover from that scenario?
0
votes
0answers
38 views

install sites using virtualmin but ftp(proftp server,filezilla client) upload failed

I used virtualmin to creat multi sitex on a vps(ubuntu 14 lts). everything is OK except when I try to upload and try to update a file(former files on the vps are scp from another vps) it always ...
0
votes
1answer
111 views

Understanding chmod Symbolic Notation and use of Octal

Many new users make mistakes (or have misunderstanding) while applying chmod on files or directories, because of a lack of informative knowledge of: Symbolic notation for ugo and rwx Use of octal ...
0
votes
1answer
34 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
43 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
138 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
2answers
77 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 ...
0
votes
2answers
294 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
1answer
450 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. ...
1
vote
2answers
106 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
28 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 ...
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 ...
0
votes
2answers
24 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 ...
0
votes
1answer
72 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
2answers
90 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 ...
1
vote
1answer
72 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 ...
12
votes
5answers
928 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
1
vote
0answers
34 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, ...
1
vote
2answers
54 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
2k 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 ...
0
votes
1answer
124 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 ...
1
vote
1answer
72 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
1answer
873 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
42 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
878 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
0answers
272 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 ...
0
votes
1answer
104 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
0
votes
1answer
44 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 ...
0
votes
0answers
39 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
51 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
295 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 ...
16
votes
2answers
7k 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
2answers
274 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 ...
0
votes
1answer
63 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 ...
0
votes
0answers
250 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 ...
2
votes
1answer
192 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
35 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.