Questions tagged [administration]
224 questions
85
votes
10 answers
How do you kick a benign user off your system?
I was googling this a bit ago and noticed a couple of ways, but I'm guessing that google doesn't know all. So how do you kick users off your Linux box? also how do you go about seeing they are logged in in the first place? and related... does your…
xenoterracide
- 57,918
- 74
- 184
- 250
76
votes
3 answers
Server admin sent me a private key to use. Why?
I'm supposed to be accessing a server in order to link a company's staging and live servers into our deployment loop. An admin over on their side set up the two instances and then created a user on the server for us to SSH in as. This much I'm used…
Toby
- 783
- 1
- 5
- 7
74
votes
4 answers
How do I run a command as the system administrator (root)
I need to run a command with administrative privileges. Someone said I should run a command as root. How do I do this?
Stefan
- 24,830
- 40
- 98
- 126
61
votes
3 answers
I've just "mv"ed a 49GB directory to a bad file path, is it possible to restore the original state of the files?
I have (well, I had) a directory:
/media/admin/my_data
It was approximately 49GB in size and had tens of thousands of files in it.
The directory is the mount point of an active LUKS partition.
I wanted to rename the directory…
the_velour_fog
- 11,840
- 16
- 64
- 109
51
votes
4 answers
Is it possible to rename a Unix user account?
I installed Ubuntu on a computer that is now used by somebody else. I renamed the account with her name, but it only changes the fullname, not the user name, which is still displayed in the top right (in the fast-user-switch-applet). Is there a…
Yann Dìnendal
- 613
- 1
- 5
- 6
51
votes
5 answers
How can I change a user's default group in Linux?
Being new to Linux administration, I'm a little confused about the following commands:
useradd
usermod
groupadd
groupmod
I've just finished reading the user administration book in the Linux/Unix Administrator's handbook, but some things are still a…
cwd
- 44,479
- 71
- 146
- 167
48
votes
13 answers
What is a fast command line way to switch between multiple directories for system administration?
What is a fast command line way to switch between multiple directories for system administration? I mean, I can use pushd . and popd to toggle, but what if I want to store multiples and cycle through them, rather than permanently popping them off…
Volomike
- 691
- 6
- 12
44
votes
3 answers
How to make Fedora user a sudoer?
I want to give a Fedora user sudo privileges. How do I do that?
tshepang
- 64,472
- 86
- 223
- 290
36
votes
2 answers
How to know reason of a process going to sleep state and wake it up?
When I do 'top' , I see my perl script process in 'S' state. Is there a way to know, what is making this perl process go in sleep state and ways to wake it up? Any way to debug to give more insights on lines in perl script making it go in 'S' state.
xyz
- 2,891
- 9
- 27
- 28
29
votes
2 answers
Vim: searching upward/downward in file from specific point/position
I want to search a word from my current cursor position in vim to upward in file.
How to achieve this?
Also how to do same for downward in file.
Drt
- 413
- 1
- 4
- 8
29
votes
6 answers
Alternatives for "lsof" command?
In many cases lsof is not installed on the machines that I have to work with, but the "function" of lsof would be needed very much (for example on AIX). :\
Are there any lsof like applications in the non-Windows world?
For example, I need to know…
LanceBaynes
- 39,295
- 97
- 250
- 349
27
votes
11 answers
How to know if /dev/sdX is a connected USB or HDD?
How can I know if /dev/sdX is a local HDD or USB key?
I’d prefer a way of doing this without root privileges.
OK, udevadm helped a lot:
For local HDD:
udevadm info --query=all --name=sdb | grep ID_BUS
E: ID_BUS=ata
For USB key:
udevadm info…
daisy
- 53,527
- 78
- 236
- 383
26
votes
2 answers
Why did a new user inherit files from a deleted user?
So I had to do an exercise in a book as homework. First you had to create a user like:
useradd -c "Steven Baxter" -s "/bin/sh" sbaxter
Then you had to add some files to the /home/sbaxter directory:
touch /home/sbaxter/ some.txt new.txt…
John
- 418
- 3
- 9
25
votes
2 answers
Implications creating System Accounts "useradd -r" Linux Fedora/RHEL/CentOS
I want to know what are the implications of create an account using -r option?
# useradd -r ...
The help says:
-r, --system
Create a system account.
System users will be created with no aging information in /etc/shadow, and their
numeric…
QA_Col
- 474
- 2
- 7
- 15
18
votes
1 answer
usermod: group 'sudo' does not exist in CentOS
I want to grant a user sudo access.
I suppose mainly I want to grant privileges to install software, and am not quite sure how to this in CentOS:
https://linuxize.com/post/how-to-add-user-to-sudoers-in-centos/
wheras in Ubuntu the option, at least…
Nicholas Saunders
- 425
- 2
- 6
- 18