permissions

What's the real meaning of "!!" in /etc/shadow on Ubuntu

What's the real meaning of "!!" in /etc/shadow on Ubuntu The stackexchange link says "it is not possible to login to the account using a password", but the baeldung link says "anyone can log in to the account without any password". The stackexchange link: Both "!" and "!!" being present in the password field mean …

Total answers: 1

Installed thonny using sudo but can't run from desktop

Installed thonny using sudo but can't run from desktop Ubuntu 22.04.4 LTS kubuntu 22.04 I downloaded the thonny bash script from thonny git. from terminal i typed sudo bash thonny-4.1.4.bash it installed fine. If I run in terminal sudo /root/apps/thonny/bin/thonny it runs and opens fine. If I try and run it from Kubuntu desktop I …

Total answers: 1

FUSE filesystems look at saved UID/GID?

FUSE filesystems look at saved UID/GID? While attempting to create a program that reads some configuration before launching programs as a normal user and then as the root user, I noticed this odd behavior. I can’t seem to find mention of it anywhere else. Normal filesystems use the effective UID/GID for access checks, but it …

Total answers: 1

chown cannot dereference, Permission denied

chown cannot dereference, Permission denied Given, touch /tmp/abc ln -vs abc /tmp/def $ ls -l /tmp/??? -rw-rw-r– 1 ubuntu ubuntu 0 Apr 10 22:10 /tmp/abc lrwxrwxrwx 1 ubuntu ubuntu 3 Apr 10 22:10 /tmp/def -> abc Why I’m getting: $ sudo chown syslog: /tmp/def chown: cannot dereference ‘/tmp/def’: Permission denied $ sudo chown –dereference syslog: …

Total answers: 1

How to fix Foliate 3 unable to open any epub file after recent update?

How to fix Foliate 3 being unable to open any books after recent update? After the recent update, the Foliate ebook reader cannot open ebooks anymore (in both APT and Snap versions). This issue seems to occur in Ubuntu 22.04 with snap, as well as in Ubuntu 24.04. $ foliate Alcott, Louisa May – Little …

Total answers: 1

Which permission is not too open but not too obscured?

Which permission is not too open but not too obscured? Let me explain you the problem: We need a rsfile.key. mkdir keys openssl rand -base64 768 > rsfile.key rskey.file permissions has to be not too open, if it is too open, MongoDB will not launch. We have to move the rskey.file to the Docker, so …

Total answers: 1

Can you tell me why rsync is saying my files are different

Can you tell me why rsync is saying my files are different I’m using rsync to sync files from my NAS to a Remote Server. The files on the Remote Server appear to have the same user, group and permissions as the source. However rsync wants to copy the files anyhow. Here is the output …

Total answers: 1

Set the file permission to -rwx——

Set the file permission to -rwx—— My goal is to set the permission of a file to -rwx——. The file currently has the permission -rwxr-xr-x. I have set this with chmod +rwx. Asked By: MartinTTS || Source chmod is the right tool to use, and chmod 700 should accomplish the task. For a lot more …

Total answers: 1

Why does chown reset/remove the SUID bit and reset capabilities?

Why does chown reset/remove the SUID bit and reset capabilities? This command: sudo chown -R root:root directory will remove the SUID bit and reset all capabilities for files. I wonder why it’s done silently and it’s not mentioned in the man page. Weirdly the GUID bit is not removed. And it doesn’t matter who the …

Total answers: 1

Permission denied when opening a file in gdb

Permission denied when opening a file in gdb I’m implementing some CTF challenges. The flags are in some text files, that get read from the programs. To protect the flags I have changed the owner of the files, but have set the setuid to the executables to be able to read the files. It works …

Total answers: 1

How to programmatically determine whether superuser elevation is necessary to invoke code?

How to programmatically determine whether superuser elevation is necessary to invoke code? When providing code to another, it appears to be good practice to remove all elevation-specific code — that is, provide apt update rather than sudo apt update (or su -c ‘apt update’). However, this causes all kinds of problems for those new to …

Total answers: 1

I accidently changed my root user's name and now have lost all root permissions

I accidently changed my root user's name and now have lost all root permissions I was messing around on my minecraft server with usermod and at some point I copied a command from a forum with incorrect terms. now when I sudo cat /etc/passwd, the output for my root user is as follows 2r(M@kRf5N#u2DW2root:x:0:0:root:/root:/bin/bash with …

Total answers: 1

DHCPD and Appamor

DHCPD and Appamor I running ubuntu 22.04 on raspberry pi, with fixed IPv4 address. On the server a isc-dhcp-server is running. (i know isc-dhcp-server is outdated an not in service anymore). While starting appamor denying dhcpd operation: apparmor="DENIED" operation="open" profile="/usr/sbin/dhcpd" name="/proc/sys/net/ipv4/ip_local_port_range" That’s not a problem, because of fixed IPv4 address, but why and how can …

Total answers: 1

How to grant a snap permission to read the whole filesystem

How to grant a snap permission to read the whole filesystem I’ve installed the mdview snap. It gives file not found errors for whatever reason. How to I set up snap permissions so that I can run mdview anywhere on the filesystem and have it load the file I give it without error. Asked By: …

Total answers: 1

Cannot write into `/sys/power/mem_sleep` in debian

Cannot write into `/sys/power/mem_sleep` in debian When using sudo tee or sudoedit, I am getting an Invalid argument error. sudoedit: unable to write to /sys/power/mem_sleep: Invalid argument sudoedit: contents of edit session left in /var/tmp/mem_sleep.c9QzrIn7 Even as user root (after su) using vi directly on the file leads to a write error: "/sys/power/mem_sleep" E514: Write …

Total answers: 1

sudo: /etc/sudo.conf is group writable

sudo: /etc/sudo.conf is group writable I’ve made a mistake. List of commands that I typed: sudo usermod -a -G root erp sudo chmod g+w /etc setfacl -R -m u:erp:rwx /etc Then ssh.service of the virtual machine stopped working and when I type commands with sudo in terminal, it says sudo: /etc/sudo.conf is group writable. And …

Total answers: 1

sym link in Apache used to work but is now forbidden

sym link in Apache used to work but is now forbidden I’m in the process of setting up a new computer; the old setup was Ubuntu 20.04 LTS; and I had placed a sym link to allow apache to access my content. sudo ln -s /home/ed/mystuff /var/www/html/stuff So that I could access it simply by …

Total answers: 2

I am unable to access or write to etc/hosts file

I am unable to access or write to etc/hosts file I am attempting to edit theetc/hosts file. I am able to access it through the graphic file system to find that it is read only. When using sudo nano etc/hosts as many suggest, I see that the directory etc doesn’t exist although i can see …

Total answers: 1