2022 Developer Survey is open! Take survey.

Questions tagged [user]

User accounts allow multiple users to work at one multi-user system. They are identified by a username. Multiple accounts allow for adjustment of access to system files, e.g. a the special account of the superuser for system administration can make unrestricted system-wide changes. An account with reduced privileges is therefore recommended for the day-to-day use of system to prevent unintentional changes (see also su and sudo).

Filter by
Sorted by
Tagged with
0 votes
0 answers
39 views

Why do the USERS and W commands show multiple pi sessions?

Way back in 2016, @Picard asked Why do I have 3 different pi users? and @PhilB explained that the information provided showed 3 users: 1) a console login, 2) a GUI login and 3) a remote login. I just ...
user avatar
  • 1
0 votes
1 answer
61 views

Trying to kill all processes, but new processes keep spawning

I'm trying to rename the default pi username after getting a new raspberry pi 4. I am completely new to Linux, so my knowledge of the matter is small. From what I've discovered, one way to rename pi ...
user avatar
0 votes
2 answers
61 views

Is it possible to have separate SSH keys for separate users

So let's say I have 2 accounts, pi and cloud. I want to be able to let people access the cloud account(which doesn't have sudo permissions) but I don't want them to access the pi account(which has ...
user avatar
2 votes
1 answer
173 views

Wrong password creating on first boot (cloud-init) (Ubuntu 20.04 server, RPI 4)

I try create preinstalled user for Ubuntu 20.04. For this i add some entries in accordance with official docs, to /etc/cloud/cloud.cfg (config for cloud-init ) Old: users: - default My: users: ...
user avatar
0 votes
2 answers
234 views

renaming default user in Raspbian PC - cannot kill 'pi' user related processes

I am trying to rename default user 'pi' to something else, and I am failing miserably. Raspbian is based on Debian, so I assumed that it behaves as Debian, am I wrong? What I tried? I did normal route,...
user avatar
0 votes
2 answers
347 views

Which user is used to authenticate with the NFS server when mounting in fstab?

I'm trying to wrap my head around connecting my Pi2B to a NAS using NFS. In this answer, @Ingo wrote. As customary then you mount to nfs shares with entries in /etc/fstab. This line in your /etc/...
user avatar
4 votes
2 answers
428 views

No HDMI audio when logged in as a new user

Sound over HDMI works fine when I login as the default user pi. I created a new user named for example user1 If I login as this user, no sound plays through hdmi. I then added this user to most groups ...
user avatar
0 votes
2 answers
509 views

nobody user running demon

My raspberry pi has been hacked and as result my samba files have been encrypted by the user nobody. There is a thy demon that keep running in my pi by the user nobody. I have been searching ...
user avatar
  • 1
1 vote
0 answers
45 views

Raspberry pi locking mechanism is insecure by default

I've followed a tutorial that lets me lock my Raspberry pi. Though I do not know which one it was I assume it was this one. However when I lock it I could just press Crtl+Alt+F7 to get right back into ...
user avatar
  • 121
0 votes
2 answers
2k views

adduser command does not create home directories [closed]

i ran sudo adduser dummyuser and followed the prompts to create the password etc. After logging in to the dummyuser account, it does not create any of the home sub-directories (such as Documents, ...
user avatar
1 vote
2 answers
387 views

Allow non-root user to set system time

I am using Raspbian Buster on an Raspberry Pi 4. I would like to give permissions to a non-root user to be able to set the time with /bin/date -s. The user is going to be used to run a python script ...
user avatar
  • 231
1 vote
1 answer
784 views

SFTP Match multiple Users

I was trying to configure SFTP to a list of users, so I thought of creating a few blocks of "Match User" at "/etc/ssh/sshd_config" file. Something like this: # User A, B Match User usera,userb ...
user avatar
1 vote
2 answers
3k views

Change UID and GID of default user pi

In my network environment I already have a user with the same UID (user id) and GID (group id) than the default user pi on Raspbian. This conflicts with user rights on my network, so I have to change ...
user avatar
  • 39.5k
1 vote
1 answer
40 views

How can you share an individual flow in node-red?

I have a Raspberry Pi with a lot of Node-Red flows running. I would like another person (with a separate account) to be able to log in and have access to a specific flow, but I would not like them to ...
user avatar
1 vote
0 answers
123 views

Different user login (same 'pi' username) depending on method

I'm just using putty and SSH'ing into a Raspberry Pi If I log in using the hostname "pi@raspberrypi" + password then I get one filesystem/folders. If I determine the Pi IP address using ifconfig,...
user avatar
  • 11
0 votes
0 answers
24 views

Need different default keyboard settings for different users

I set up Raspberry Pi 4 workstations with Raspbian Buster for a school library and want to use a different keyboard setting for the root account. Now it seems to me that I can only change the ...
user avatar
  • 1
0 votes
0 answers
463 views

Failed to start permit user sessions

When my RP boots, I get several errors about some services failing. Most notably 'permit user sessions'. Which means I can not log in to the device, and I can not make changes to it. I can of course ...
user avatar
0 votes
1 answer
110 views

Create new users and put them in a group with low privilege

I try to create new users and put them in a group with low privilege. I want them to only have access to their home (not to other folders). I tried useradd but the new user has access to all folders. ...
user avatar
1 vote
0 answers
290 views

How to access bluetooth controller on `/dev/input/js0` as user/group?

I'm working on an application that is reading an XBox controller connected via bluetooth. After configuring it (see https://pimylifeup.com/xbox-controllers-raspberry-pi/), I noticed that only root has ...
user avatar
  • 111
1 vote
1 answer
23 views

Changing username without affecting SSH certificate login

I have secured my SSH logins with certificate authorisation and I want to change my username, so I did. When I did this, I was denied access. Is there a way to change username without affecting the ...
user avatar
  • 211
1 vote
0 answers
75 views

Is there any default user login, other than usr: pi, pwd: raspberry?

The reason I am asking is because I have setup my Raspberry Pi 3 b+ to run a specific script on boot, the only issue is this is an infinite loop and prints every time - so I cannot enter any commands! ...
user avatar
  • 151
1 vote
2 answers
2k views

New user, Pi keeps asking for password

I made a new user on my Raspberry Pi for myself and it keeps asking for my password when I do things like sudo apt-get install. How do I make it an administrator?
user avatar
0 votes
3 answers
2k views

GPIO.add_event_detect requires root

I am trying to run a program using GPIO from a normal user. I checked that /dev/gpiomem has the correct permission (root:gpio 0660) and that my user is member of group gpio. The following works ...
user avatar
  • 101
3 votes
2 answers
5k views

Where is Raspberry Pi "Logout after inactivity" configuration

I recently downloaded and installed a standard Raspbian OS environment on my Pi. On my Ubuntu Laptop, "Logout after inactivity" is a standard setting, which I like a lot. This is not active on my Pi, ...
user avatar
  • 161
0 votes
1 answer
897 views

How to allow non-root access to /dev/tty7

I have problems running fbi without sudo. As user pi running fbi -noverbose -nocomments -T 7 -1 -t 10 test.jpg or fbi -noverbose -nocomments -T 1 -1 -t 10 test.jpg I get an error /dev/tty7: ...
user avatar
  • 533
2 votes
3 answers
2k views

Changing pi user password - reverts to default following reboot

I have a Raspberry Pi running Jessie that I'm using as a notification gateway. If I SSH to it and change the user pi password, it appears to take and when I open a separate SSH session to it it ...
user avatar
1 vote
2 answers
3k views

Enable VNC and SSH for user other than `pi`?

New to Pi and I am trying to configure my Pi3. I would like to keep the user pi intact with the factory password, but still be able to use VNC and SSH without getting the security error message. I ...
user avatar
0 votes
1 answer
30 views

User and location line disappeared at new user

When you log in with the standard pi user in commandline, you see like pi@hostname and after that the location path you're in. But when I create a new user and log in into that, that line disappears......
user avatar
  • 1
1 vote
1 answer
134 views

I deleted the user pi but it still appears in the boot screen

Following the suggestions to secure my raspberrypi from this article I: created a new user changed its password disabled the default pi user with sudo passwd --lock pi deleted the user pi with sudo ...
user avatar
  • 111
8 votes
3 answers
16k views

Can't delete pi user on Raspbian

I have made a new Raspbian installation. All good. I wanted to delete pi user and make another user with same privileges (lets say gordon). So first I enabled direct ssh access to user root by doing ...
user avatar
  • 183
0 votes
2 answers
416 views

Installed Ubuntu 16.04 LTS 'classic', no .config directory for users

I've installed Ubuntu 16.04 LTS 'classic' on my Pi 3, and am using the CLI which is a struggle but bearable. I've created a user, and subsequent instructions involve configuring a startup daemon in ...
user avatar
0 votes
1 answer
3k views

How do I grant sudo privileges to an existing user?

I am using vnc viewer on Windows 10. user: pi I am lost, please help. What I Have Tried: *sudo chmod 777 ** also .. sudo nano /etc/sudoers adding the following line just like "root ALL=(ALL:...
user avatar
1 vote
0 answers
63 views

new directories are owned by non existent user 10001

I am currently trying to setup my raspberry pi as a webserver that serves files from a cifs share. The problem I run into is that my while using ssh, my pi creates all new files/folder with a non ...
user avatar
  • 11
0 votes
1 answer
1k views

Cannot run my script from rc.local file as a different user

I have a script which runs my program and I would like to run it automatically when my pi has booted. The script is rather simple as: #!/bin/sh -e sleep 2 cd /home/pi/ /home/pi/monitor I have added ...
user avatar
  • 111
2 votes
3 answers
2k views

New user cannot login

I created a new user. Added all the groups that the "pi" user belonged to. When I try to login with that user, it just keeps recycling back to the login. If I login with the user "pi", I can su to ...
user avatar
2 votes
1 answer
5k views

How to configure RealVNC server to allow connection to other users than pi

I have a Raspberry 2 Model B with raspbian jessie and I have realvnc-server installed. I've created a new user in raspbian and when I try to connect remotely via VNC viewer with the new user, I get an ...
user avatar
  • 123
5 votes
3 answers
6k views

What is the purpose of group "staff"?

What is the purpose of group "staff"? Interestingly, note that the set user or group ID on execution (s) bit is set. michael@greenbeanDev:~ $ ls -l /usr total 72 drwxr-xr-x 2 root root 28672 May ...
user avatar
0 votes
1 answer
319 views

Change username using a script [closed]

I'm working on an industrial application for the Pi, and for that we need to, of course, change the username. I don't want to do this manually everytime, so I want to use a script. So far I have ...
user avatar
  • 191
1 vote
2 answers
1k views

Chown files of mounted raspbian image to a user that isn't on host system

I have an init script that mkdir -p raspi-os-image/home/pi/.ssh and adds a SSH key to authorized_keys inside. The problem is, when doing this it needs to be done as root and then once the system is ...
user avatar
  • 281
8 votes
5 answers
46k views

User and password

I just installed Raspian Jessie lite date 4-10-17. All articles state the username and password are "pi" and "rasberry". These do not work. What is the correct user and password?
user avatar
6 votes
1 answer
2k views

I have just returned to my Raspberry Pi after a year and can't remember my login

After sitting in the depths of my project desk for a year or so, a Raspberry Pi model B turned up that has data I want to save. It boots up but I deleted the pi user for security reasons and can't ...
user avatar
0 votes
0 answers
254 views

Autologin & VNCSERVER issues

Sorry for the poor title but I couldn't find a better one for my issue as I don't know what's going on. Recently I write (for purpose that are not relevant now) a fresh Raspbian image from November ...
user avatar
  • 113
0 votes
1 answer
1k views

Adding new user to sudoers file breaks sudo completely / how to add a new user with the same privileges as pi

I switched from the arch Linux image to the latest Debian Jessie lite 2017-01-11 image and added a new user as root. # adduser sampletext Then I added on the sudoers-file a new line with: sampletext ...
user avatar
3 votes
0 answers
1k views

Set permissions and group for /dev/gpiomem permanently [duplicate]

I need to allow my user access to the GPIO pins and found following solution. Access GPIO pins without root. No access to /dev/mem. Try running as root! This works perfectly. All I need to do is ...
user avatar
  • 253
0 votes
1 answer
3k views

Why do I have 3 different pi users?

raspberry pi 3 with raspbian, ssh via macOS Hi, I just noticed something awkward. When I tried to login via ssh on my pi, I noticed that I couldn't log in with the password I recently changed with ...
user avatar
  • 143
0 votes
0 answers
215 views

launching deluge with different user creditential

i want to launch deluge from a different user which has ther permission to write to specific folder where deluge will download. so i su to that username media then run this from terminal /usr/share/...
user avatar
1 vote
1 answer
502 views

restricted shell (rsh) on raspbian

I want to run the restricted shell (rsh) on the raspberry pi as the default shell for a user, but I can't seem to find it. my code is: sudo su adduser restricteduser cd ~restricteduser chmod ...
user avatar
1 vote
1 answer
49 views

Avoid user change without public key

I set public key authentication on my rpi and disabled password login in the sshd_config file. There are two users: userA and userB, while userA is my main user. In addition there are two computers (...
user avatar
-1 votes
1 answer
783 views

auto-mount USBDrives (vfat) for users other than pi

When a USB drive (vfat) is connected, the system automatically mounts it on /media/pi/DriveName with permissions set for user pi. Thus each time I need to change something in the drive, I need sudo ...
user avatar
1 vote
1 answer
734 views

How to properly use suid on bash scripts?

I intend to use bash scripts to control some GPIO pins. I wrote a script, which works properly if I run it when I su to root. The script contains nothing more than a bunch of echo commands, for ...
user avatar
  • 225