Questions tagged [chmod]
The `chmod` command is used to adjust file permissions to read, write and execute for the owner, group and others.
110
questions with no upvoted or accepted answers
3
votes
0
answers
1k
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 ...
2
votes
0
answers
189
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 ...
2
votes
1
answer
5k
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 ...
2
votes
2
answers
1k
views
Untrusted Application .desktop (solutions given haven't worked)
So I recently installed Quartus II Lite 18.1 on my Ubuntu. After a smooth installation through terminal (I forgot to click launch application while I was still in root).
Now the desktop icon appears ...
2
votes
0
answers
2k
views
Allow user to execute jar file, but not to copy(read) it
I have interesting problem which I am not sure there is a solution for.
I need to allow a specific user to execute a Java program(jar), but not to copy(read) it. The problem is that if I give only ...
2
votes
1
answer
423
views
Auto chmod and launch?
Is there a way to have all files chmoded and then launched automatically?
Say when I have my pc off, I insert a usb stick with a game on it, a lot of random files need to be chmoded and then I would ...
2
votes
0
answers
59
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?
...
2
votes
1
answer
338
views
Locked out of drive on Ubuntu Server
I was trying to delete some torrents that I had downloaded with transmission-daemon and was unable to from my samba share on windows due to transmission's default file creation permissions.
I ...
1
vote
1
answer
2k
views
/run/user/1000 is not owned by UID 1000, as it should
So I have this error going on, and its the origin of a lot of errors with snap that I'm recieving. So when I execute:
$ systemctl status display-manager
Recieved some text and:
gkr-pam: unable to ...
1
vote
0
answers
217
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 ...
1
vote
1
answer
128
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 ...
1
vote
0
answers
38
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 ...
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 ...
1
vote
0
answers
167
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. ...
1
vote
0
answers
510
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 ...
1
vote
2
answers
7k
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 ...
1
vote
0
answers
3k
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, ...
1
vote
0
answers
769
views
NextCloud Wont Launch
I just installed Ubuntu (encrypted) on a surplus server to use as an in-home NAS. I'm trying to get NextCloud up and running, but it failed to launch and popped up a terminal window with the ...
1
vote
0
answers
65
views
Setting default permissions for all new dirs/files in a dir and its subdirs, no matter who creates them
I have a directory, and I want all directories created in this directory, or its sub dirs, to be 777 and all files created in it or any of its subdirectories to be 666. It doesn't matter which user ...
1
vote
0
answers
2k
views
change permission of directory and all its sub-directories/files recursively
I have search around but can't find the correct answer.
How do I change the permission of a directory and all its sub-directories/files then also when a user creates a file or directory this must ...
1
vote
1
answer
1k
views
How to run script at startup that requires a password?
I am running ubutu on a raspbery pi 3
I have a script that runs as root when ubuntu boots. For that script to run correctly I need a password. In other words my script starts like:
#!/bin/bash
...
1
vote
1
answer
229
views
ubuntu 16.04 installed on second physical drive
My system has two drives. The first is 500GB SSD and the second is a 3TB physical drive.
For some reason, that I apparently missed, when I installed Ubuntu 16.04 it installed on the SSD just fine, ...
1
vote
0
answers
372
views
Accidentally ran sudo chmod -R 664 / - completely locked out of my server, please help
I can't believe I have done this but in my sleep deprived state (babies...) I have made an awful mistake on my server.
I cannot seem to do anything, navigate directories, restart the server, anything....
1
vote
0
answers
2k
views
How to apply chmod recursively within a smbclient prompt?
I am logged in to some server with smbclient and I am sharing a LaTeX project (contained in directory) with other people. Currently, all files seem to have permissions 600. For other people to be able ...
1
vote
1
answer
3k
views
Adding write permission to SFTP folder stops ability to connect using Filezilla
I have followed these instruction to setup a SFTP server on an Ubuntu EC2 instance
https://rmtheis.wordpress.com/2011/07/03/setting-up-an-sftp-site-on-amazon-web-services-ec2-creating-an-account-to-...
1
vote
2
answers
8k
views
Can't get correct permissions for /var/www/html/
I've read several threads here talking about this issue and tried all the solutions provided, none of them are working.
Whenever I try composer install I get a bunch of errors saying cannot install
[...
1
vote
1
answer
12k
views
"No such file or directory" after chmod
I downloaded my professor's "shell" program and am trying to run it on my machine to do some homework. When I tried to run it from terminal using ./shell I got a "Permission denied error". After ...
1
vote
0
answers
3k
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 ...
1
vote
1
answer
231
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 ...
1
vote
1
answer
3k
views
Permission denied apache even after chmod
I am trying to setup my LAMP server on ubuntu when i am about to change mod chmod of the files in the /var/www directory but when i try :
sudo chmod 0644 www/* -R
and
sudo chmod 0644 www -R
When ...
1
vote
0
answers
6k
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 ...
1
vote
0
answers
2k
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 ...
1
vote
1
answer
147
views
In ubuntu matlab execution file cannot be run
I have stored my matlab installation in one of the partitions.But ubuntu doesn't recognize the matlab file as an executable file even after executing chmod +x command. Kindly help me to resolve the ...
1
vote
1
answer
2k
views
Ubuntu corrupted log files
It seems that all my log folders located in /var/log are turning into files.
For example, if I try to tail /var/log/apache2.log it will say "no such file or directory"
I can see it in the file ...
1
vote
0
answers
962
views
Changing permission for 'Public' folder always failed
I have 2 PC using ubuntu(I assume PC 1 and PC 2), and I always share a file or folder for each other. I know that I have to right click first, choose Sharing Options and check Share this folder.
...
1
vote
1
answer
2k
views
Sharing folder with guest
I am trying to allow access to the guest account to a folder at /share
I have chmod 775'd and even 777'd the folder to no avail.
I know the guest account is locked down so it cant access /home, /...
1
vote
2
answers
1k
views
Chown and chmod in ubuntu with different applications using common files
I'm having problems with chown and chmod in ubuntu 18.04.
When I use php + nginx:
touch ('/var/www/a.log');
user:own of a.log is nginx:nginx and chmod is rw-r-r--
when i use
shell_exec('ffmpeg -i' ...
0
votes
0
answers
28
views
Ubuntu 22.04 katlooon installation errors when running git commands and directory doesnt exist
im on ubuntu 22.04(?) and im trying to install kali repo apps (im still learning Linux i might sound confusing) and i installed git in terminal but when trying to get katloon it installs the first ...
0
votes
0
answers
59
views
Setting Default 666 Permissions for Specific File Types (.xlms, .png .pdf...) in Linux Using ColdFusion
I am working on a project using ColdFusion on a Linux system, and I need to programmatically set default permissions (666) for files with specific extensions (.pdf, .xlsx, .png, .html, .zip).
Despite ...
0
votes
2
answers
116
views
Is it possible to revert sudo chmod 777 -R /home/USER/docker?
I'm starting to learn more about Linux and Ubuntu while I'm building a home server. But when reading a tutorial I was suggested to add sudo chmod 777 -R /home/USER/docker in the terminal for the ...
0
votes
1
answer
56
views
Won't boot into recovery or normal after running chmod command as root in recovery
I screwed up big time with my home server. I lost sudo on my user account and was following a guide to re-enable it. I went into recovery mode and when into the root shell and ran these commands:
...
0
votes
0
answers
206
views
How to give a permenant permission for a disk?
I have hdd that has been mounted to a new folder Backup that I created in /media
/dev/sda1 15T 28K 14T 1% /media/Backup
But I am not able to create any folder and the permission is as ...
0
votes
0
answers
69
views
Can't save or download data to USB memory stick
I normally use Windows on my desktop but like to experiment with Linux. I've tried several distros and different desktops. I'm currently using Ubuntu with Cinnamon but my problem applies to all other ...
0
votes
0
answers
35
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 ...
0
votes
0
answers
460
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 ...
0
votes
1
answer
264
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 ...
0
votes
0
answers
232
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, ...
0
votes
0
answers
157
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 ...
0
votes
0
answers
371
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 ...
0
votes
0
answers
170
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 ...