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

Giving all users permissions to entire file structures?

I have a filesharing/videos HTPC, i let my close friends add their own files to it, Im getting annoying permission issues with it though. sometimes when a directory is created root gets the ...
1
vote
0answers
19 views

Can't Apply Changes to Permissions Within a Folder's Enclosed Files in Ubuntu

Issue with the GUI I'm using Ubuntu 16.04 LTS. I am trying to allow all enclosed Files and Folders to have full Read and write access as well as Create and delete files. Currently, it is set to Read ...
0
votes
2answers
45 views

Why did adding read permissions recursively to /etc break ssh?

For reasons I am too embarrassed to share, I ran this command as root on a remote server: chmod a+r -R /etc Once I logged out of the SSH session, I was not able to SSH back in: $ ssh myusername@<...
0
votes
0answers
16 views

Can't reach gateway ubuntu 16.04.5

I got virtual machine with Ubuntu 16.04 there was performed command chmod -R 777 /. My task is to recover system and reach the internet. My steps where this: I entered recovery mode and did this Fix ...
0
votes
0answers
26 views

After chown 777 to the folder, it is still blocked

chmod chmod -R 777 /media chmod -R 777 /media/guoyi chmod -R 777 /media/guoyi/pc Then it is still blocked and I use ln -s /media/guoyi/pc/x /home/guoyi/desktop Then the link is also blocked. What's ...
0
votes
0answers
34 views

FAT32 change permisssion [duplicate]

error setting permissionhi when i format micro SD card to fat32 and after that copying executable file to SD card , permission of file that sent changes to read only and can not be executed even i ...
0
votes
1answer
31 views

Weird permissions after sudo chmod

On Ubuntu 20.10. When I run something like: sudo chmod -R +766 /etc/apache2 I end up with permissions that do not allow my user (in group "other") to access the files in /etc/apache2. When ...
0
votes
2answers
87 views

is it possible to create symbolic links on exfat filesystem?

I cannot even change permissions with chmod 777 that on one hand returns no error but on the other does not change the permissions either. File system is exfat. But my issue is inabililty to create ...
1
vote
1answer
52 views

understanding chmod

image link -chmod permission for user I am trying to understand different permission for text file in linux , please refer the image i have attached. i want to ask two question. 1- when the text file ...
0
votes
2answers
88 views

Can I prevent myself from deleting a file?

It seems logical that a user ought to be able to tell himself that he is not allowed to delete a file under his own ownership. I'd like to take away my own permission to delete a file. Can I do this ...
0
votes
1answer
16 views

change permission folder and underliyng folders chmod 553 to 555

i am helping a friend of mine setting up his nas remotely, unfortunately it seems the ftp program i use for this doesn't have access to some folders as permissions are set to chmod 553. unfortunately ...
1
vote
2answers
88 views

why is chmod -rwx not removing all the permissions on my private key file, the answers here that I have seen did not help me?

chmod -rwx prac1 abayomi@AbayomiUsman:~/.ssh$ ll | grep prac1 -r-xr-xr-x 1 abayomi abayomi 2655 Feb 18 15:55 prac1* -rwxrwxrwx 1 abayomi abayomi 574 Feb 18 15:55 prac1.pub* abayomi@AbayomiUsman:~/....
0
votes
1answer
56 views

CHMOD and how the permissions thing works? [closed]

So I got few questions about CHMOD and permissions in general. I know there are 3 groups: user(the creator of the file, the admin user (?) ) groups others My questions are: Can I create more than 1 ...
0
votes
1answer
392 views

What does a "No such file or directory” mean and How do I correct the problem?

I read in Stack Exchange that the message I am getting, "No such file or directory” refers to not being in the directory where the file I need resides. The article suggested using “cd" to ...
0
votes
1answer
70 views

What are the proper chown and chmod syntax?

I am trying to change ownership of a file/directory and seem to be doing something wrong, is it my syntax or...what? michael@michael-desktop:/media/michael/Films$ ls -l total 1536 drwxr-xr-x 2 michael ...
0
votes
1answer
463 views

chmod changing permissions of Read-only file system

I have this error when i try to use chmod 777 -R to make a mounted harddrive writable and readable. chmod changing permissions of <some file> Read-only file system My fstab looks like this: UUID=...
1
vote
0answers
48 views

Watched app make Lubuntu 18.04 stuck

I tried installing watched app (download from here) I ran below code: chmod +x WATCHED-1.0.8.AppImage ./WATCHED-1.0.8.AppImage When the app appears, my Lubuntu 18.04 LTS stuck and I don't know why. ...
0
votes
0answers
143 views

Permission errors with Nextcloud snap installation

Snap installation of Nextcloud 18. Was running fine for about a year then the server was rebooted. Now Nextcloud will not start. I am a linux newbie and have no idea what to do. I'd be happy to pay ...
0
votes
0answers
43 views

How do I create persistent executable files?

I have created a script file called restart-services.sh and made it executable using chmod +x. I run it to restart some services by simply double clicking on it and selecting run. However, if I copy ...
0
votes
0answers
95 views

Accidentally ran a chmod command on the “/” root directory

I accidentally ran a sudo find -type f -exec chmod 664 {} \; on the root directory of my server as I was logged in from a sudo user I rebooted the server which seems to still be running fine, I also ...
0
votes
2answers
86 views

How to make txt, csv and pem files read and writable only by root with sudo previliges?

I have some files inside a folder with various formats like .txt, .pem, .csv and .json. I want only sudo/root to be able access them. I have done chmod 700 and chmod 600 on each of those files. But, ...
0
votes
1answer
52 views

Backing up Thunderbird from one laptop to another with RSync?

I installed Ubuntu on another laptop that I want to back up to. I run this: ole@mkt:~$ rsync -vaz /home/ole/.thunderbird ole@192.168.1.21:/~ ole@192.168.1.21's password: sending incremental file list ...
1
vote
1answer
79 views

User, Group and Other in the chmod command

I think I basically understood the point with the seven levels of authorization with the chmod command. However I'm not sure what is meant by user, group and other. What's the difference between ...
0
votes
2answers
2k views

How to give a specific user a read ONLY permission to a specific folder in Linux without root?

I want to give a specific user with the username userA permission to only read a folder that I created. Every other post that I found says you should either create a new group, which I cannot because ...
1
vote
1answer
50 views

Grant writing permission to /snap devices

I installed blender with snap and I want the app to use blender's numix-circle-icon so I tried to replace /snap/blender/47/blender.svg but I have this error with sudo: File systeme is only readable I ...
0
votes
0answers
17 views

chmod permissions clarification [duplicate]

chmod is used to change permissions of files/directories and generally use syntax like - chmod xyz <file-or-directory> where x, y, z numeric values of permissions for user, group and others but ...
0
votes
0answers
56 views

Creating a sftp user for each directory within /var/www/

I have 5 sites within /var/www/ on my server. I want to create a sftp user for each of them. I followed these steps and it worked with a test user that I just created. I thought I understand the ...
11
votes
1answer
1k views

What does the final “+” mean after the user/group/others rwx permissions

How do you modify or eliminate the "+" symbol? Example: (directory)rwxr-x---+
0
votes
1answer
64 views

Where to mount HDD partitions? Who is the owner?

The primary SSD in Ubuntu is mounted at FileSystems root. Where do I mount the additional HDD that I have in my system? Is /media/<NewDirectory> the right place? Who should be the owner of this ...
0
votes
2answers
65 views

Accidentally Set All Files in /home/(userName) to 755

I recently installed Ubuntu on a personal computer and I am the only user. I am having this issue where every time I save something to the Desktop the icons rearrange. (I still have not solved this ...
-1
votes
1answer
29 views

Give permission to folder only to root and owner in BASH

I am looking for a confirmation. I still do not understand chmod command. What I want is to give permissions to root and owner to a folder in a supercomputer cluster. My first approach would be: ...
0
votes
4answers
133 views

Chmod 600 issue

My situation is I was using terminal for ssh did the chmod 600 / then I did the ~. Stopped me from going into files rebooted and stuck atlogin screen where type password blink black screen then login ...
1
vote
1answer
389 views

how to chmod a dir from root's crontab

Root's crontab -e has the lines @reboot mkdir -p /tmp/vimbackups @reboot chmod 777 /tmp/vimbackups @reboot anotherCommand After boot, the directory has been made, but it still has the default 755 ...
0
votes
0answers
37 views

How should I change the permission?

Permission read only doesn't change even as root ubuntu 19.10 .I tried chmod again and again through terminal but nothing happen , I did a this ( ls -dl /media/balla/7EB6D19AB6D152EF drwxrwxrwx 1 ...
1
vote
1answer
859 views

20.04 - chmod not working on exfat mount

I have 2 internal HDDs formatted in exFAT - fstab as below #INT-1TB-4K Internal HDD mount to /mnt/INT-1TB-4K UUID=0E7E-6579 /mnt/INT-1TB-4K exfat defaults, permissions 0 0 #INT-1TB-BAK Internal HDD ...
1
vote
0answers
328 views

Cannot change file permission and ownership

I'm using Google Cloud with Ubuntu 20.04 and using Guacamole to RDP into the machine. I have created a bunch of users and wanted to change folder permissions and file permissions of the files I'll be ...
0
votes
1answer
424 views

Ubuntu locked shared files

I have Samba in Ubuntu, where I share one Directory with name "Kurier" When I paste to this directory new file from other device, I see this file in Ubuntu like Locked. I can unlock this ...
2
votes
1answer
76 views

How to verify if SGID (Set Group ID up on execution) is set on a folder? [closed]

Using Ubuntu 20.04 LTS. I have set the SGID bit on a folder using chmod g+s folder. When I do ls -la the command shows the usual information, which doesn't include information about SGID: drwxrws--- ...
0
votes
2answers
3k views

Shared Folder permission Denied on Ubuntu 18.04

I have a strange problem with Ubuntu file permissions. I have a fresh ubuntu installed server and I've mounted a shared drive. sudo mount //Hostname:ifs/path/to/directory/file /mnt/my directory. The ...
0
votes
0answers
55 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
29 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
113 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
30 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
1answer
4k 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
698 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'... ...
10
votes
2answers
3k 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
60 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
26 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
183 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
118 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 ...

1
2 3 4 5
11