users

My username mentioned twice in who command

My username mentioned twice in who command I noticed by chance today that I had 2 users running on my Linux system. I do not know much about Linux users but I ended up running the “w” command that gave the following output when Firefox is running: USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT …

Total answers: 1

What does "enable" mean when adding a samba share user?

What does "enable" mean when adding a samba share user? In this SO question, the asking person mentions the adding and then the editing of a samba user account. Something like this: $ sudo useradd –system –no-create-home –group=smb-group -s /bin/false smb-user1 $ sudo smbpasswd -a smb-user1 $ sudo smbpasswd -e smb-user1 So does this article …

Total answers: 1

Can I add users by simply adding new entries in /etc/passwd

Can I add users by simply adding new entries in /etc/passwd I am adding a new node to my small "cluster". I would like the new node to have exactly the same accounts (for human users) on it. I tried to copy the human user entries from other node to this new node but I …

Total answers: 1

Are 4755 permissions safe for usr/lib/dbus-1.0/dbus-daemon-launch-helper?

Are 4755 permissions safe for usr/lib/dbus-1.0/dbus-daemon-launch-helper? I somehow messed up the permissions of many files on my Ubuntu 22.04.2 LTS system (privately used computer, not a server), which has already caused a couple of problems. Recently, I noticed that I couldn’t start Users and Groups via the GUI. It resulted in the error message: The …

Total answers: 1

how to access linux data from another machine physically?

how to access linux data from another machine physically? My laptop is failing, but I know for sure the hard drive is okay and fine. I want to take the data inside it, I connect my laptop’s hard drive (open suse tumbleweed with btrfs filesystem) to my desktop pc (ubuntu 22.04.01 LTS with vfat filesystem), …

Total answers: 1

Which user does systemd start services as?

Which user does systemd start services as? I’d like to learn about how systemd starts services, specifically which user the service is started as, and I’d like to use Jenkins running on my Linux PC as an example. I know that init is pid 1, the mother of all processes in Linux, and in my …

Total answers: 2

How to let user can only read files?

How to let user can only read files? I have some new files to release every day. My coworker needs to sftp/scp to my Linux server to copy these files. I don’t want him to do any file delete/move/execution…etc, the only thing he can do should be copied (scp/sftp) the files back. The best is …

Total answers: 1

ansible copy ssh keys to multiple users' home directory

ansible copy ssh keys to multiple users' home directory I have ssh keypair on my ansible_host, which I want to copy to multiple user’s authorized keys on target host. I’m trying with-item construct, but it complaints about .pub key not an invalid key here’s what I’m trying. – authorized_key: user: "{{ item.user }}" key: "{{ …

Total answers: 2

"Other users are logged in" how does the system know? Where is the information leaking?

"Other users are logged in" how does the system know? Where is the information leaking? (Example screenshot taken from https://askubuntu.com/questions/1343872/ubuntu-shows-other-users-are-logged-in-whenever-i-shut-down-even-though-i-am-the) But my question is: how does the system know this? I have done sudo chmod o-r /var/run/utmp sudo chmod o-r /var/log/wtmp And I verified that my user cannot run w or who anymore: the command …

Total answers: 1

What is the purpose of systemd's /run/user/UID/inaccessible/?

What is the purpose of systemd's /run/user/UID/inaccessible/? What is the purpose of /run/user/<UID>/inaccessible/? There are two device special files therein, namely blk and chr with major device number 0, so these are dummies. But what for? I tried to find this in the systemd online documentation and other resources but I could find no hint …

Total answers: 1

How do commands determine whether we have the necessary privileges to perform an action?

How do commands determine whether we have the necessary privileges to perform an action? Ubuntu newbie here! I can’t seem to figure out what mechanism determines whether to execute a command or to display a ‘Permission denied’ error. For example, assuming that we are using a regular user account, ‘chown –help’ get executed and works …

Total answers: 1

Why does adding a user to the sudo group give him access to the sudo command?

Why does adding a user to the sudo group give him access to the sudo command? Ubuntu newbie here! As far as I understand groups exist so that file permissions can easily be assigned to many users at once, or to allow specific applications to access files securely, such as with the shadow group. But …

Total answers: 1

Typically, which file users (owners) come with a distro?

Typically, which file users (owners) come with a distro? Typically, after installing a distro we get a root user and a sudo user. I don’t know if these are typically the only users owning files (as a user/u or "owner"), are they? or are there typically more users owning files and if so, what are …

Total answers: 1

How to create user for the current session only in Linux?

How to create user for the current session only in Linux? Is it possible to create a user without writing to the /etc/passwd file, so that the user only exists in the memory? adduser doesn’t have an option for doing this. I don’t think this is possible from the command line, so a solution in …

Total answers: 1

Can a user without root privileges cause harm to the system for other users?

Can a user without root privileges cause harm to the system for other users? Can a user without root privilege access another user’s home folder or perform harmful actions to other users? If I was to run some executable on a user without root privileges and it got infected, can I just remove that user …

Total answers: 1

Give read only access to every user for a folder

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 work. Is this correct? Asked …

Total answers: 2

Fedora Server 36 – update process automatically closes user’s session

Fedora Server 36 – update process automatically closes user’s session This latest Saturday and today, through VirtualBox for Fedora Server 36, as many times as I did do, was executed the sudo dnf update command, the password is written and Starts to load and show some information. It about the progress bar loading and retrieving …

Total answers: 1

Give user A full access to user B and vice versa

Give user A full access to user B and vice versa I have two users. Each user has a project. Problem: I need to work on both projects simultaneously, but I always have to login at the other user to make changes, because otherwise I have no permissions. I have split the project to two …

Total answers: 1