All Questions
210
questions
0
votes
0
answers
19
views
Ubuntu 20.04: php lacking permissions to access /var/www/html
I'm trying to write contents to file, however I constantly receive error about lacking permission.
fopen(/var/www/html/files/l.log) Failed to open stream permission denied in /var/www/html/files/file....
0
votes
0
answers
132
views
Samba Server does restrict writing but not browsing or reading
I made a Samba Server with 3 shares for each user and I would like to restrict access to it so only those users can access their folder. I have been browsing so much only that I got a mad headache ...
1
vote
1
answer
749
views
How to safely change uid and gid for apache user (www-data) on Ubuntu 22.04
I have a quite specific situation where a migration needs to happen from one brand od linux to ubuntu 22.04. So far, so good. Among other things original setup have multiple users and respective ...
1
vote
0
answers
94
views
Docker container unable to write to removable drive
I currently am running Ubuntu Jammy and have a docker container that needs to write to two external drives that were automatically mounted to /media/MYUSER/MYDRIVE while both are mounted correctly and ...
0
votes
0
answers
93
views
Why do permissions change randomly when mounting via 9p method?
The mounting is working perfectly fine. I mount the external share by using fstab with the following config:
data /home/data 9p trans=virtio,version=9p2000.L,_netdev,rw,uid=...
0
votes
1
answer
1k
views
Unable to connect to server as root via ssh
I want to use remote explorer in VS Code on Windows to access a server from Ubuntu.
Entering a password all the time is annoying, so I tried generating an ssh key using ssh-keygen. The key works fine ...
1
vote
0
answers
452
views
Ffmpeg No such file or directory creating hls output
I am using ffmpeg to create a hls live stream with the following command
ffmpeg -i "rtmp://domain.com/stream/6" -c:v copy -c:a copy -f hls -y -preset superfast -hls_segment_type mpegts -...
0
votes
2
answers
500
views
Linux system not booting after chown of the root directory `/`
Recently I was unable to paste a video file from download to one of my directories. It was giving error related to permission so I changed the owner of / to myself with
sudo chown -R pranav .
Now it ...
1
vote
0
answers
31
views
Fix changing owner to Root of multiple system files
I accidentally ran this command
# chown -R root:root /{usr,lib,var,etc,bin,sbin,tools}
on my ubuntu 23.04 system.
How can I fix permissions?
Can this be done without reinstalling?
Thanks
1
vote
1
answer
878
views
How to correct sudo fatal error on Ubuntu after wrong permissions given?
I made a mistake giving wrong permissions on folders (chown I think on the wrong folder) when using wsl and ubuntu.
Now I have the following errors when I launch Ubuntu. I really don't know what to do:...
2
votes
0
answers
3k
views
No new privileges flag is set error
I created a new user called jump using sudo adduser jump and then gave it root permissions using: sudo usermod -aG sudo jump. I then switched to my user using: su - jump, and ran: sudo curl -fsSL ...
2
votes
1
answer
10k
views
fatal: bad ownership or modes for chroot directory component "/"
I created an sftp only user called sftp with the following rules:
Match User xxx-ftp
ForceCommand internal-sftp
PasswordAuthentication yes
ChrootDirectory /home/xxx-ftp
PermitTunnel no
...
0
votes
1
answer
5k
views
SFTP error#3: Permission denied
Till yesterday login to our Ubuntu-20.04 LTS was working fine, But today suddenly it started showing below error while trying to login.
SFTP error#3: Permission denied
$ ls
ls: cannot open directory ...
1
vote
2
answers
11k
views
NFS mount command failed: Permission denied
I am working on an embedded board, running embedded Linux on it.
I want to mount the directory from my Linux Host machine (Ubuntu 20.04) to my embedded board.
As per the document shared with the board,...
2
votes
1
answer
7k
views
How to reassign uid:gid to all users and automatically fix all file ownerships and permissions?
I want to reassign new uid:gid to all existing users and automatically fix all file ownerships and permission.
The user names will stay the same just the uids and gids will be updated.
How can I ...