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
2answers
229 views

I entered “sudo chmod 770 /” on terminal. Is it fixable?

I was trying to deny permissions to access the root folder to all non sudoers, and had the (NOT) brilliant idea to run sudo chmod 770 /. Now I get permission denied for all commands. I am running ...
0
votes
0answers
19 views

How to change owner to default? [duplicate]

I am new in Ubuntu, and I am a web developer. I was making a page website returned an error and said you need permission and something about chmod() Then I asked a friend what to do for the chmod ...
0
votes
0answers
29 views

How to chmod /cdrom to 777 on USB trial install file system

I have done a USB install of Ubuntu 14.04 I try to sudo chmod 777 /cdrom/temp mode of /cdrom/temp changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx) ubuntu@ubuntu:/$ ls -ld /cdrom/temp drwxr-xr-x 3 ...
1
vote
0answers
102 views

Group Administrator cannot change file right by chmod g+w

Already execute" gpasswd -a " to assign a group administrator. The one of group owner put a file as read only. But group administrator can't change the file by" chmod g+w files.txt". Error ...
0
votes
2answers
49 views

how to have chown only effect folders, not files?

I have to chmod a structure of subfolders which contain more sufolders and also files naturally. Now I need to change access rights (owner:group, no acl at this point) to this complete structure in ...
0
votes
1answer
54 views

Best Practices for Permissions in Major Directories in Ubuntu

Been trying to figure this out all day and hopefully someone will see this and know or redirect me. Basically I want to know what the best permission settings for all the default files (by which I ...
1
vote
2answers
32 views

chmod from user to group recursive

I have a folder ( Android-SDK ) with a lot of executables ( user only ) in it - now I want to share this between 2 users ( jenkins + login-user ) - now I have to set executable flags for every ...
2
votes
1answer
446 views

Command to change permissions only on files not directories

I have the following command find . -type f -print0 | xargs -0 chmod 644 which would successfully change to 644 the permissions on all files in ., provided that the filenames contained no embedded ...
0
votes
1answer
497 views

How to fix corrupted permissions inside encfs encrypted folder

I manage and mount a encrypted folder with Gnome encfs manager and it worked for years. Suddenly it seems like the files or permissions inside were corrupted. Mounting works as usual on terminal as ...
3
votes
1answer
65 views

If I make a file executable on one system, will it remain so if I move it to another?

If make a file executable with chmod +x <file> , will the change be still applied even if I move the file onto another system? Would that apply even if I distributed the file to a wide number ...
0
votes
2answers
2k views

Use chown to set the ownership of all a folder's subfolders and files?

How can I use the chown command to change the ownership of all a folder's subfolders and files?
0
votes
1answer
80 views

Samba permission require execute attrib to list folder contents?

Okay so I have Samba running on my server and I have noticed that it can't display folder contents unless the folder is set with chmod 700 to give rwx attributes to everything instead of just rw with ...
1
vote
1answer
169 views

how to create shortcut for an application? [duplicate]

I just successfully opened Godot Engine. It was a .64 file that I learned to run in Terminal with chmod. Is there a way to add a Shortcut for the Application on my Desktop?.
2
votes
2answers
129 views

how do I remove the chmod +t file permissions

I was setting up a new hard drive for temporary folders and accidentally set the chmod +t (sticky bit) file permission. How can I remove this setting? I have a program using it as temp folders and ...
0
votes
2answers
43 views

What is the proper chmod for a file

I want to choose the right chmod for a file, that cannot be viewed or accesed directly, but it can be send by mail from script. I have an ubuntu server (LAMP) and I am asking myself if this could be ...
-2
votes
1answer
71 views

How to give Windows 7 access to a file?

I have my Ubuntu installation mounted on a 3TB drive and also use it as a storage for large files I use on my Windows 7 Dual boot. Recently I spent a long time encrypting a file for use in Windows. By ...
0
votes
0answers
13 views

NTFS permissions messed up [duplicate]

I run a dual boot with Ubuntu on sd6 and Windows8.1 on sd4. I was trying to get plex media server working on my ubuntu, and I ended up messing my D:/ (sda5) in windows. I used this guide to set ...
1
vote
1answer
59 views

How do I specify folders only for chmod

I have a 30GB website, with loads of folders, and files. I want all the folders to have the permission 745 and all the files to have 644. I tried using chmod -R 745 public_html/ but all the sub files ...
1
vote
1answer
2k views

How to give permission to execute Eclipse application?

This one has confused me for a couple of hours. I know the command sudo chmod +x file to give executable permissions, and still I don't get my application to run. For context, I installed Eclipse ...
1
vote
1answer
1k views

chmod: Everything on SD Card Stuck On 755, Owner is Root

I am trying to access my SD card as a general user after it somehow changed to just Root access. I have tried several solutions, and none of them worked. Here is an attempt to chown eveything to ...
0
votes
0answers
87 views

Cannot access anything in ubuntu 14.04 after running sudo chmod 000 /

I run sudo chmod 000 / . then i wanted to run 777 permission. but 000 permission is not allowing me to write command in terminal. I can not access anything. Then i shut down PC. now my PC is not ...
4
votes
2answers
387 views

bash: /path/.bash_aliases: Permission denied

I don't know why this line appears first when I open my gnome-terminal. bash: /home/username/.bash_aliases: Permission denied laptop-dell:-$ I tried this but still the problem remains there. chmod ...
0
votes
0answers
48 views

sudo chmod -R ugo+rw “/var/lib” how to reset this command?

I applied this command on ubuntu 14.04. Is it okay to do this or did I make a mistake by doing it? Please Help me.
1
vote
1answer
58 views

USB ports not working, problems with ownership and permissions

I have ended up with problems with ownership and permissions on my computer, probably due to a brainless recursive change of permissions..! I don't know which folder was affected, so I have changed ...
0
votes
1answer
157 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 ...
-1
votes
2answers
2k 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 ...
5
votes
2answers
3k 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 ...
5
votes
2answers
513 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 ...
0
votes
0answers
103 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
179 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 ...
0
votes
2answers
157 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 ...
0
votes
1answer
150 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
212 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 ...
2
votes
1answer
57 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
2k 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
1answer
305 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 don'...
0
votes
2answers
265 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
3answers
803 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 ...
3
votes
1answer
3k 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 ...
1
vote
1answer
280 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 ...
0
votes
1answer
1k 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 www-data:www-...
1
vote
0answers
31 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 ...
1
vote
1answer
5k 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 ...
13
votes
2answers
893 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
89 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 ...
-2
votes
1answer
105 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 that ...
1
vote
1answer
70 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
84 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
296 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
572 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 ...