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
0 answers
23 views

Permission on the main folder isn't reflected on the sub folders

I have assigned a folder(MF) to a group (ENG). This group has read, wright and execute permissions to the folder MF. However, MF has sub folders in it. Some sub folders do not list the ENG group to ...
Rakesh Nittur's user avatar
0 votes
1 answer
38 views

Giving specific rights

I have the directory called 'sales' and 2 groups called 'Sales' and 'HRM'. As shown below, I have a list with all directories, and connected groups. Without changing the directory's group, i need to ...
Zennert's user avatar
0 votes
0 answers
89 views

I cannot rm -rf this directory Permission denied even though I have perm WSL2 ubuntu

So there is this location ~/.local/share/nvim/mason/.packages for mason to properly install packages it apparently needs to be able to remove stuff within this folder however my user doesn't have perm ...
Sombre Dreamer's user avatar
0 votes
0 answers
18 views

Restoring correct file permissions for /var/ [duplicate]

Whilst running some chmod commands for Oxid 6, I made the rookie mistake of not double checking what was written fully and managed to chmod 777 /var -R as part of my command How can I restore the ...
Alex's user avatar
  • 101
0 votes
0 answers
44 views

Permission denied or Command not found for majority of command

Please I Need help for VPS production server. I am hosting a web app (Laravel) and I was setting up permissions. This is the command I accidentally typed sudo chmod -R 770 storage /*(note the space) ...
BoCyrill's user avatar
  • 111
0 votes
1 answer
79 views

nftables.conf - file permissions

after the plain installation of nftables (ubuntu server 22.04) the permissions of the /etc/nftables.conf file are set to 755 (-rwxr-xr-x). i cannot believe that it's necessary that anyone has read and ...
Shaun.M's user avatar
  • 11
0 votes
2 answers
1k views

Give read only access to every user for a folder

I am the owner of directory mydir. I don't have root access. How can I give only read access to someone so that they can create a local copy of mydir? Edit: ChatGPT tells me chmod -R o+r mydir should ...
helperFunction's user avatar
6 votes
4 answers
2k views

I accidentally typed sudo chmod -R 777 to /var insted of /var/www

I accidentally typed sudo chmod -R 777 to /var insted of /var/www so now I cannot open some applications like Skype or Ubuntu Software. Is there any way to fix this?
s0mething001's user avatar
0 votes
0 answers
33 views

Permissions for network file system

Is there any NFS/cifs/smb that allows for setting full uid/gid and permissions? I would like the files to be on the network so that in event the machine goes down, the data is still easily accessible ...
bilogic's user avatar
  • 191
0 votes
1 answer
310 views

Set file permissions, exclude folder - doesn't work with chmod (works with chown?)

I want to change file permissions and exclude a folder and it's contents (or only the contents is okay too). It doesn't seem to work the same way as with chown - beause with chown I can change owner ...
Galivan's user avatar
  • 101
0 votes
0 answers
87 views

EXT4 file, read and write inside ext4

I'm trying to modify .apk file inside ext4 file. I used mount to mount ext4 file and chmod to gain write permissions. If I mount, chmod, dont make anything else, chmod back to original permiossions, ...
empe1337's user avatar
0 votes
0 answers
102 views

Give permission to other users to access disk

I created a new disk and mounted it and made entries in fstab file but the disk can only be accessed by the root user.How to 1.Give permission of read and write to the disk for other users 2.Give ...
san11's user avatar
  • 1
0 votes
0 answers
174 views

Problems moving files to a samba share: permissions and ownership not persistent

I have samba running on a Ubuntu 22.04 machine so I can share an specific directory with another Ubuntu 22.04 client machine. This directory on host has no files on it. Samba config on host is as ...
gelcom's user avatar
  • 1
8 votes
1 answer
958 views

Any recover from sudo chmod 600 / [duplicate]

I was configuring ssl certificate on server and while following documentation I accidentally pasted terminal command without checking. sudo chmod 600 / usr/local/nginx/ssl/my-ssl.key It immediately ...
Roko's user avatar
  • 183
0 votes
1 answer
158 views

Need help after setting my /etc folder to chmod 777 [duplicate]

So I did the really dumb CARELESS action of running sudo chmod -R 777 ./ while in the etc folder. I can’t ssh into my server or anything now. I feel like an absolute idiot ofcourse because this could ...
Lite's user avatar
  • 1
0 votes
1 answer
420 views

Set permissions on a specific user for /var/www

I have a standard user on an Ubuntu 22.04 Desktop VM named "user1". The VM is running apache2. I would like user1 to not be able to access the contents of the folder /var/wwww to keep the ...
Andrew Campi's user avatar
0 votes
0 answers
41 views

Permission management in Linux Ubuntu

I am new to Linux and need some help with permission management on directories for groups on ubuntu server. Permission needed for groups on directories are as show below: As per my understanding, in ...
Dev's user avatar
  • 1
0 votes
0 answers
28 views

give write access to another disk with ubuntu 20.04

I'm new to linux and I'm struggling a bit with this problem. I have an HP HP EliteBook 840 G3 with an SDD disk on which I have installed ubuntu 20.04 and a hard disk on which I have windows. the hard ...
Sir's user avatar
  • 1
0 votes
1 answer
1k views

hello i have this proplem chmod: missing operand after ‘+x’

hello every body im new in linux so i have this proplem im writing this coomand '' chmod +x'' in ubuntu but when i click enter it shows chmod: chmod: missing operand after ‘+x’ Try 'chmod --help' for ...
Bassel Holiby's user avatar
1 vote
1 answer
41 views

Why are my backed-up & restored files now all set to +x (filemode 755, previously 644) on 22.04 Jammy Jellyfish?

Background I had a failed update from 21.04 to 22.04 because of a misunderstanding that I had about updating my Ubuntu installation. I asked about what had happened here. Luckily I was able to back-...
raddevus's user avatar
  • 1,656
0 votes
1 answer
264 views

Will usermod update all file and folder permissions correctly?

I have an issue with docker, because docker will write files with UID 1000, but my UID in the host is 1001. a workaround is changing UID of my host user to 1000 that means change the existing user in ...
Toskan's user avatar
  • 246
0 votes
0 answers
128 views

Cannot read a file from user in group

I've a file which permission are -rwxrwxr-x 1 an-user www-data 1094 Jun 9 09:42 myfile The group is www-data, so any one in the www-data group should be allowed. When trying to read the file through ...
Orion644's user avatar
0 votes
0 answers
55 views

Ubuntu 20.04 trying to export code from Umbrello shows permission error

Today I installed Umbrello with the command sudo snap install umbrello. So far so good I was able to create my project work a little on it and wanted to use the Code Generation Wizard in order to test ...
Dokik's user avatar
  • 101
-1 votes
1 answer
2k views

Unable to change file and folder owner and permission from root to other users ( Ubunto 20.4)

I am new to linux. I have a partition in which all the folder and files owner is set as root.I am unable to change anything using chomd and chown when i write the commands as : sudo chown -c -v user ...
Saad Mughal's user avatar
1 vote
0 answers
135 views

Directory appearing as file, acting like directory in bash

This question has been asked before, but, I think without the appropriate complete description of the problem so it was dismissed off-hand, but it's real, and I'm looking at it. This is not my first ...
BenG's user avatar
  • 11
0 votes
0 answers
73 views

/dev/nvme0n1p3 ubuntu 20.04 does not booting up

I'm in a trouble. I've changed diretory "usr" using command "chmod" and now my laptop Is crashed. I'm having the followed message in a Black screen when it's turning on: "/...
Carlos Cezar's user avatar
0 votes
0 answers
104 views

cannot enter my own directory after running 2 chmod commands

I ran these 2 commands : sudo find /var/www/wordpress/ -type d -exec chmod 750 {} \; sudo find /var/www/wordpress/ -type f -exec chmod 640 {} \; And now I can't enter the directory: -bash: cd: ...
clusterBuddy's user avatar
0 votes
0 answers
1k views

chmod+x command not found

I am installing PyRx software for virtual screening in Ubuntu 20.04 version but when I run the command: chmod+x Pyrx-0.8-linux-x86_64-install it gives an error: chmod+x: command not found How to ...
Misbah naseem's user avatar
1 vote
1 answer
362 views

accidentally ran sudo chmod 700 /* [duplicate]

i accidentaly ran " sudo chmod 700 /* ", is there a way to undo this..? i have no idea what to do. I am on Ubuntu 22.04 desktop amd64
amogus guy's user avatar
3 votes
0 answers
851 views

root ownership after mounting a drive with ext4 format

I have formatted with ext4 format by GParted: (1) an USB flash drive and (2) an external hard drive. So far so good, but now they have root ownership and non edit permissions. I can update the ...
zeugor's user avatar
  • 411
0 votes
1 answer
1k views

How can I give permissions for folders in Linux?

I have to create company/lawyers Company/accountants Company/users/Tim Company/users/Mike Company/users/Rob Company/users/Ann I also have to give permission to make changes for company only to root, ...
Marina's user avatar
  • 1
1 vote
1 answer
973 views

linux I want to add permission on two groups

I have my owner (Pierre) and he has all permission on g586 folder, I have my first group (G586) have read permission, I have another groupe name (teacher) have read and execute permission, and other ...
Francis Goudreault's user avatar
1 vote
1 answer
5k views

File permissions are not changing using the chmod command [duplicate]

I want to transfer files from my PC to an external HDD. I tried all the chmod commands but they are not changing file permissions. The GUI settings are also not working. My external HDD is NTFS.
Jessica Fernandez's user avatar
0 votes
1 answer
1k views

Getting error "Permissions 0777 for 'myname-2.pem' are too open" while connecting to AWS EC2 instannce

Why connecting to Amazon instance, I got following error: $ ssh -i "myname-2.pem" ec2-user@ec2-12-245-65-0.ap-south-1.compute.amazonaws.com @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
Rnj's user avatar
  • 179
1 vote
1 answer
479 views

I accidentally did chmod wrong and some commands show permission denied

I wanted to set chmod 644 to some files in my ubuntu like this sudo chmod 644 ./* but I accidentally did sudo chmod 644 /* It has corrupted my ubuntu, some commands start show permission denied. The ...
game lover's user avatar
0 votes
1 answer
1k views

I accidentally ran sudo chmod -R 777 /home/

I accidentally executed: sudo chmod -R 777 /home/ Is there any way to recover from this?
CHANDUKA SAMARASINGHE.'s user avatar
0 votes
1 answer
2k views

Unable to change permissions and user:group of SMB mounted directory

I have a trueNAS SMB mount to a Proxmox VM directory. The mount works fine however, in order for services to automatically move files from one part of the same directory to another, I need to remove ...
user2985708's user avatar
0 votes
1 answer
212 views

Will I break things if I use "sudo chmod -R u=wrx [user]"?

I have multiple users and some have access to files of other users, I want to make sure they can only access the files and folders I set up. So I gave certain folders a public subgroup chown [...
apmech707's user avatar
3 votes
1 answer
8k views

How do I set permissions to use Docker with my normal user? [duplicate]

I use Ubuntu 20.04 and I use docker to run images. When I installed and ran the docker command for the 1st time, the following error occurred in the shell. Got permission denied while trying to ...
at8819's user avatar
  • 33
1 vote
0 answers
24 views

running series of commands gives other result than running them on script [duplicate]

this is the script: #!/bin/sh rm -rf git/ mkdir -p git/{c,ds/{include,test},projects,quizzes,system_programming} find git/ -type d -exec touch {}/dummy.md \; This is the wanted result: git/ ├── c │   ...
Asaf's user avatar
  • 11
7 votes
1 answer
1k views

After installing youtube-dl on Ubuntu 21.10 with the instructions on github many applications, including default text editor, broke

A new user here, running ubuntu on version 21.10 impish. I was installing youtube-dl with the instructions on the github page (https://github.com/ytdl-org/youtube-dl#installation): $ sudo curl -L ...
Tomptp's user avatar
  • 73
1 vote
1 answer
109 views

Permissions makes libreoffice go in a crash-loop when opening from terminal

I am having some permission issues with libreoffice that I just don't have the technical provess to understand. ISSUE when I run localc directly from terminal, it goes into a loop: the program crashes ...
emilBeBri's user avatar
  • 214
0 votes
1 answer
654 views

Not able to to delete file with drwx--S--- permission

We are not able to delete file because of special permission drwx--S---. I have tried command chmod g -s filenameion but we cant use root user. SO is there anyway to delete
maya patil's user avatar
1 vote
0 answers
30 views

A new folder is created with default setgid bit set to S

I have two Ubuntu servers, both with umask 0002. On one of them, whenever I created a new sub-folder in a folder named public, the new sub-folder has the setgid bit set to S. On the other machine, it ...
Old Geezer's user avatar
0 votes
0 answers
189 views

cannot excute shell script with permission denied

I tried to run shell script file fin.sh: 1: fin.sh: cannot create fin.log: Permission denied I tried to sudo chmod u+x fin.sh but still got the same error
Lei's user avatar
  • 1
0 votes
1 answer
464 views

Enter recovery mode in headless ubuntu setup?

I know, there are lots of posts about this to enter recovery mode etc. But I have a raspberry running headless ubuntu server, and sadly I have no keyboard or monitor to connect to it. So what I did is:...
viktor spett's user avatar
0 votes
0 answers
39 views

edit chmod for youtube-dl [duplicate]

I'm still learning my way around linux. I tried installing youtube-dl following these instructions https://itsfoss.com/download-youtube-linux/ When I got to sudo chmod a+rx /usr/local/bin/youtube-dl I ...
dogfood's user avatar
  • 11
1 vote
1 answer
2k views

Setting the permissions on all files inside a folder without changing the permissions of the folder itself?

I have a folder called my_files. I want to: set the permissions to allow all users to read, write and execute the folder and set the permissions on all files inside my_files to allow all users to ...
Andrea's user avatar
  • 111
0 votes
1 answer
4k views

Couldn't Display [program] -- No application installed for "shared library" files

I think the problem is -- to Ubuntu, it doesn't seem that some of the files are executable at all or rather it doesn't know its file to type. The Files Manager due to which instead of showing the ...
Aarush Aggarwal's user avatar
0 votes
1 answer
1k views

Permission Denied When Running Shell Script

I'm using Ubuntu Server 20.04 LTS. When I run a shell script, I get the following error: -bash: ./install.sh: Permission denied. I've looked at a similar post on this forum and none of those answers ...
Wilson T.'s user avatar

1
2 3 4 5
12