Questions tagged [accounts]

138 questions
34
votes
4 answers

What is the difference between user and service account?

I would like to know difference between user and service account. I know that e.g. Jenkins installed to ubuntu is not a user, but service account. What is use of service account? When we need them? How can I create service account?
Rudziankoŭ
  • 463
  • 1
  • 4
  • 6
25
votes
1 answer

How do I set a user's default .bashrc file?

On Ubuntu 10.4 I have edited the /etc/bash.bashrc file to set some variables like the command history size (HISTSIZE=5000), however if I create a new users Ubuntu by default gives them a .bashrc file in their home directory with this set as…
cwd
  • 44,479
  • 71
  • 146
  • 167
24
votes
3 answers

How can I create automatically expiring user accounts?

This is what I'd like to be able to do: After a user's account is created, they should be able to ssh-tunnel, but their account is automatically removed after 30 days unless the countdown is reset by the root user. How can I automate this? I'll have…
Yusufmm
  • 394
  • 1
  • 3
  • 11
20
votes
4 answers

Why are there many accounts? I'm the only user

I am running an Ubuntu 12.04 desktop system. So far I have only installed some programs (I have sudo rights). When I check the list of users on the system, I see a long list, like more than 20 users—when were these users created (e.g. daemon, sys,…
Jake
  • 1,313
  • 2
  • 16
  • 36
16
votes
5 answers

Reasons behind the default groups and users on Linux

Having a look at the default users & groups management on some usual Linux distributions (respectively ArchLinux and Debian), I'm wondering two things about it and about the consequences of modifying the default setup and configuration. The default…
Horgix
  • 169
  • 1
  • 1
  • 8
14
votes
1 answer

Why does `postgres` require a shell?

In my Debian Wheezy systems, I noticed that the postgres user 'postgres', the "PostgreSQL administrator", uses /bin/bash as shell. However, I cannot figure out why this is needed. Changing this to /bin/false still allows me to use the command…
timothymctim
  • 356
  • 1
  • 7
10
votes
6 answers

Completely lock user account on server, including ssh

I need to lock some user accounts, without messing with their HOME, if at all possible. Normal way would be usermod -L user but it seems to leave open ssh login with public key authentication (routinely used on this server). I know I could just mv…
ZioByte
  • 830
  • 1
  • 10
  • 22
10
votes
3 answers

Setting up a unix powered network

I want to set up several computers on a LAN, all connecting to one unix server. The primary goal being that the user accounts should only exist on the server. So that any user could access his normal interface through any of the given…
Stefan
  • 24,830
  • 40
  • 98
  • 126
10
votes
4 answers

Local Account Creation Date

For compliance purposes there is the need to fetch information regarding local (user and non-user) accounts creation date on UNIX machines. Is there any way (even if it's not the most reliable or accurate method) for collecting that kind of…
antiauthor
  • 101
  • 1
  • 1
  • 3
10
votes
2 answers

/home/user: change directory failed error

I just installed Arch reading from the Beginners' Guide on the Arch Wiki. Once I rebooted Arch, I logged into root then I added my own personal account: useradd fox then passwd fox and set my password for the account. Once I logged in with fox I was…
ErraticFox
  • 273
  • 2
  • 3
  • 10
9
votes
2 answers

Create guest account in Gnome 3.X on Arch Linux

I want a guest account just like in Ubuntu which has following features: It does not require password to login A new home folder (in /tmp if possible) is created with no data every time User data is deleted as soon as he/she logs out User can not…
Alex Jones
  • 6,223
  • 17
  • 51
  • 83
8
votes
1 answer

Difference between adding sudo user with adduser or gpasswd

To add a new sudo user I believe I can call: # to create a new user sudo adduser newusername and to allow this user to use sudo I can do: sudo adduser newusername sudo or sudo gpasswd -a newusername sudo If this is correct, is there any…
8
votes
5 answers

Log out a user and delete the account

I am having a problem on the server (CentOS 6, Plesk 11.5) where a particular user is using a mass mailer and is blacklisting our IP address. I have tried to delete this user using: /usr/sbin/userdel test but it returns a message saying that the…
user1532468
  • 215
  • 1
  • 3
  • 10
8
votes
1 answer

How come each program or service has an account of its own in /etc/passwd?

I checked out the /etc/passwd file and I'm surprised to see that there are 35 different accounts, even though I'm the only user on this computer. I see that the accounts have names like mail, news, www-data, irc, pulse, etc. Why do those each have…
Pigeon
  • 83
  • 4
7
votes
1 answer

reset failed login count / unlock aix/UNIX account

As system administrator it is necessary to lock / unlock users or to reset failed login count. let's look how we can perform lock / unlock users or to reset on UNIX/AIX
user266746
1
2 3
9 10