Questions tagged [chmod]

The `chmod` command is used to adjust file permissions to read, write and execute for the owner, group and others.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

How do I change permissions for all files associated with a program?

I'm trying to set up the DAW Bitwig Studio on my Ubuntu Laptop and when I run it from terminal it crashes due to some files associated with it not having permissions. Is there a way to change ...
0
votes
0answers
25 views

16.04 LTS - Set Permissions On New Files

I'd like to have permanent 'CHMOD777' permissions on all new files into a samba directory, so that everyone has read/write to the existing and new files there. How do I set this? Is there a terminal ...
0
votes
2answers
36 views

Can't login after chown command [closed]

I just installed elementary OS dual booted with windows 10. After the installation. I saw that the / root directory has every file and folder locked. I can't rename, delete or create anything there. ...
0
votes
1answer
20 views

How to return to old chmod owner permissions after changing all to root

I did the command chmod -R www-data:www-data / But after that, nothing worked. So i found on the internet that you can returen back to your default permissions with: perl -0ne '$_ =~ m{^(\d*\d\...
0
votes
0answers
85 views

Python IOError: [Errno 13] Permission denied in ubuntu?

I want to write string character to file, but i get error like this IOError: [Errno 13] Permission denied: '/python/add.txt'. how to solve this? this is my code q = open('/python/add.txt','r') a = ['...
0
votes
0answers
57 views

problem with permission chmod, could not set 'core.filemode' to 'false' (using git clone on a fat32 partition)

I'm tryin to git clone a repo on a folder in a fat32 partition, and I get this error: $ pwd /media/data/sas/devel/apps $ git clone git@gitlab.com:xxxxx/xxxxxxxx/xxxx.git Cloning into 'notes'... ...
3
votes
1answer
273 views

`df` command throws error on /run/user/1000/doc/ folder

When reviewing my daily logwatch report, I noticed a new df error this morning. I noticed the unusual error at the top of the df listing... ~$ df (when run manually from my own account) df: /run/user/...
0
votes
0answers
41 views

Revert /root/ user's home directory permissions

When I realized that I did not have permission to access to the /root user's home directory, I followed the advice from this post which was to execute the command sudo -i (which I did) and then ...
0
votes
0answers
25 views

How bad is it that I gave full permision for all my /usr/share folders?

By mistake ran sudo chmod - R a+rwx /usr/share. I am the only user of this computer, but I am afraid of viruses and whatnot and I have no idea how to return the settings. Thanks in advance for the ...
0
votes
1answer
30 views

I changed chmod to /usr/share/applications/ how to undo

I have just installed today ubuntu, and at the end of the day to add an application to favorites I have changed access to /usr/share/applications/ by: chmod 744 /usr/share/applications As a result ...
-1
votes
1answer
48 views

What is the default permission to linux structure? I set permission 777 but I want to set defautl permission

I make a mistake, originally I set 777 permissions to all my root structure folder (I had a login loop), but I was able to change with 755 (root owner and root group). For safety reasons, I would to ...
0
votes
0answers
403 views

Trying to change owner of partition as su but get “Operation not permitted”

I'm new to ubuntu so perhaps these questions are naive. I have a partition I would like to write to so I'm trying to change the ownership of to me. I've typed: sudo chown <my username> /mnt/...
-1
votes
1answer
20 views

why doesn't mkdir -m 07 test use umask?

umask returns 0011. Consequently, when I do mkdir -m 07 test I'd expect the resultant directory to have d------rw- permissions but it doesn't - it has d------rwx permissions. What's up with this?
0
votes
0answers
37 views

Ineffective 'chmod' changes

I want to give all access to anyone for the files in some folder. I used the chmod command like this: sudo chmod 444 -R -v ./amazon_samples_500/* with the verbose -v option, so that I could monitor ...
2
votes
1answer
178 views

Undoing `chown` command?

I was installing a few softwares which prompted that : Download is performed unsandboxed as root as file couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) So I did: ...
0
votes
1answer
55 views

Can't connect to Postgres

I made a really stupid thing: I ran sudo chmod -R 777 / for all folders inside the root directory. After that even sudo didn't work because of invalid permissions. I fixed the problem with sudo, but I ...
0
votes
0answers
51 views

Help with system file permissions, chmoded everything -R and go!

I accidentally, on purpose, changed my entire computer to chmod -R a+rwX /usr Using the command sudo chown -R :users your_directory Just to change permissions for a folder in Stellarium for a ...
2
votes
1answer
715 views

Why /var/run/docker.sock permissions are changed every time I log out? How can I forbid it?

Everytime after logging in I am getting permission denied while trying to connect to the Docker daemon socket so I need to execute sudo chmod 777 /var/run/docker.sock to solve it. I am curious why and ...
0
votes
5answers
152 views

Why is chmod not recognizing file operators

I have a directory (called server) where the permissions somehow got messed up, so I need to change all the permissions back. My current command is sudo chmod -R -c a+w * But chmod just says chmod: ...
0
votes
0answers
89 views

Shadow File Permissions

I have some issues with files /etc/passwd and /etc/shadow. Both of them are without permissions. And I don't know how this happened or why. Basically I can't edit/remove these files or change ...
0
votes
1answer
49 views

Allow read/write access to a folder in the /var folder

Bonsoir à, s'il vous plait je débute sous Ubuntu et pour terminer l'installation du logiciel testlink sur Ubuntu je dois dois créer un certain dossier dans la racine /var/testlink. Mais en voulant ...
0
votes
0answers
77 views

I used chmod /.ssh inside docker, but it changes permissions on host

I run chmod -R 600 ~/.ssh/ inside a docker container, but it changes permissions on host. If I run it with sh -c "chmod -R 600 ~/.ssh/" it works correctly. Any ideas why this is happening?
1
vote
0answers
327 views

permission denied even as root!

recently we had to transfer some files between our servers(both ubuntu server 18.04). apparently the person who did this, didn't use the -a option of rsync(to preserve ownership information). So now, ...
0
votes
0answers
103 views

mkdir - read only system

Newby here (it has been decades since I have used UNIX.) Linux (ubuntu) on a chromebook. From the opening of the command shell I issue ls and I get a bunch of directories. I want to create a sub-...
1
vote
1answer
133 views

Locked out of dedicated server because of chmod

So, I accidentally ran chmod -x / instead of what I meant to, and therefore broke a load of stuff on my server. Because of this, I can't do things like log into the normal way, and am having to use ...
0
votes
1answer
131 views

Cannot write to external WD hard drive - Ubuntu Server 16.04

I am compelled to add a new thread as a million people have some other variant of my problem but I cannot seem to find help in their threads. I have tried a dozen things and more, but nothing works. ...
2
votes
1answer
518 views

Does chmod 700 hides directory from other users or just restrict them to display files inside the directory?

My home directory contains 'project' as a directory which contains 'confidential' as sub-directory and 'confidential' contains some files. I just want that only I can access this folder and other ...
0
votes
1answer
474 views

How I can make the launcher of BURAI for Quantum espresso in Ubuntu?

I am trying to install BURAI for Quantum espresso on Ubuntu. I am new on Ubuntu, and I keep getting the message below every time I try to make the BURAI launcher file using "makeLauncher.sh" of BURAI ...
0
votes
1answer
150 views

How to set read+executable permission in internal drive when chmod 777 * is not working?

I have installed ubuntu 18.04.3 LTS in my system 3 months ago. After 2 months, I don't have the read and write permission on any internal drive except my system drive. I have used chmod -R 777 * in ...
1
vote
1answer
39 views

restoring permission i have accidently given using chmod

Accidently while changing the writing, reading rights for the folder, i gave all the rights for editing my HOME directory, using sudo chmod -R 777 /home I came to know about it, after seeing ...
0
votes
0answers
68 views

Teletalk huawei 3G Modem Install Ubuntu 18.04 LTS error

Installed version: 23.015.15.00.1081 Installing version: 23.015.15.00.1081 The software is exist. Do you want overwrite it? ([Y]/N):y Local path is: /usr/local/Teletalk Installing Teletalk...chmod: ...
1
vote
1answer
67 views

usermod for domain folder

I create couple websites on my home web server. In some articles I found that I have to use : sudo chown -R $USER:$USER /var/www/your_domain other sources recommend to use: sudo chown -R www-data:www-...
3
votes
1answer
338 views

what does permission d------— means

I just run chmod 765 -r ./ hoping the last part(./) would enable me to run the command on the current working directory. That current working directory was my laravel project. Now I couldn't access it ...
2
votes
2answers
331 views

Issue with changing permissions

I don't understand why the permission does not change for a user when I run the chmod command with fakeroot. Initially, the file has these permissions: -rwxr-xr-x a.txt* When I try to change the ...
0
votes
1answer
69 views

Revoking all permissions from SMB shared folder for others

I have a Windows shared folder at a remote computer storage which is mounted in my Ubuntu 18.04 system by the following line in /etc/fstab: /xyz.xyz.xyz.xyz/folderName /media/data cifs uid=root,...
0
votes
1answer
58 views

How to get back WiFi after running sudo chmod -R a+rwx in home folder

I mistakenly ran the following command in my home folder: sudo chmod -R a+rwx Afterwards, my Wi-Fi now says no adapter found. How do I correct this? Thanks.
2
votes
1answer
672 views

Use a ext4 USB stick as “normal” pendrive

My goal is to have a USB drive in ext4 and to use it as a normal Fat32/NTFS pendrive (or usb box drive). I would be happy to forget NTFS and Fat32 and to use this USB Drive with all pc in my local ...
0
votes
1answer
127 views

chmod - R 777 - 775 does not work what do i do?

I'm currently developing an entertainment platform, I'm working as a web developer at a web bureau. This project is my own personal project, it runs a LAMP stack on DigitalOcean. At work, we have a '...
0
votes
1answer
67 views

Blocking a command from execution in ubuntu

I have a shared PC with Ubuntu in it, My friends may also want to use sudo. But I know they often play with the command chmod -R 777 / I need to know is there a way to specifically block this ...
0
votes
1answer
193 views

Cannot access '/usr/local/

Hello I was trying to install Huawei E173 driver by following steps that are available in https://www.ubuntu4u.com/howtos/how-install-huawei-e173-usb-modem-ubuntu-10041204-lts When I executed sudo ...
13
votes
1answer
365 views

Accidentally ran non-recursive chmod 754 at root directory level

I accidentally ran a chmod 754 ./ when I was at the root directory on the server which runs Ubuntu 18.04. Now I cannot use commands like sudo or pkexec, nor can I change anything. What should I do? ...
4
votes
1answer
297 views

Symbolic equivalent of chmod 600

The following is often used to set file permissions, a good example being setting a key file to an appropriate permission level to be used by ssh (this being the "octal" form): chmod 600 filename.xyz ...
12
votes
1answer
3k views

'chmod -644' would set file permission to 000

I had a file with 644(-rw-r--r--) and wanted to change it to 664(-rw-rw-r--), after running: sudo chmod -664 my_file file permissions were set to 000(----------). Trying to change the permissions ...
0
votes
1answer
671 views

Why shouldn't I set 777 permission to /var/www?

I know I am not the first to ask about it, but it's still not clear to me. I mean, on this post we can read that 777 is a bad permission in general and I'll show you why. Despite how it may ...
0
votes
1answer
104 views

Apache2 permissions in /var/www/ multiple websites

I am working on a desktop environment with Ubuntu 18.04. I have my Apache 2 server setup with multiple websites in the folder /var/www/ (each site lives in its own folder there) Made myself owner ...
0
votes
1answer
121 views

Folder permision

I am unable to copy or paste in other local disk in Ubuntu 18.04 LTS. I have tried sudo chmod -Rf 777 /media/atanu/Study where study is my local disk name. It is showing permission issues.
0
votes
1answer
242 views

/etc/sudoers is owned by gid 33, should be 0, and when I try pkexec I get “authentication failed”

I was trying to get access and write permissions to my apache sites-available folder over ssh/sftp. I didn't really understand what I was doing to be honest and ran the following commands: $ sudo ...
0
votes
1answer
237 views

chmod rx invalid

jaime@OpticaOmegaPlus:~$ echo 'date %T' >/tmp/midate; chmod rx /tmp/midate; /tmp/midate chmod: invalid mode: ‘rx’ Try 'chmod --help' for more information. -bash: /tmp/midate: Permission denied ...
3
votes
1answer
651 views

chmod has no effect on files on flash drive

My old box running ubuntu 9.04 passed away, so I plugged a flash drive into a newer box running ubuntu 16.04. But, I can't run scripts from there, because all files lost the x-permission. I can copy ...
1
vote
1answer
1k views

How to sudo chmod -R 777 * including hidden files?

Basically what I want to do is all in the title. If I want to grant read, write and execute permissions for everybody in a folder then I usually do: sudo chmod -R 777 * How can I extend this command ...

1
2 3 4 5
10