Questions tagged [administration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
66
votes
4answers
345k views

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?
10
votes
3answers
5k views

Linux Bulk/Remote Administration

Beside our internal IT infrastructure, we've got around 500 Linux machines hosting our services for the on-line world. They are grouped in a bunch of clusters like Database A-n, Product A-n, NFS, ...
16
votes
10answers
2k views

Concern about logging in as root overrated?

For personal linux on my personal notebooks, I've usually set my environment to autologin as root even under X or lower runlevels. I've found my workflow is very pleasant and fast, without any ...
46
votes
13answers
7k views

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 ...
41
votes
5answers
163k views

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 ...
39
votes
3answers
109k views

How to make Fedora user a sudoer?

I want to give a Fedora user sudo privileges. How do I do that?
22
votes
10answers
20k views

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 ...
10
votes
1answer
13k views

How to get Oracle java 7 to work with setcap cap_net_bind_service+ep

I am trying to grant the java executable the right to open ports below 1024 on Linux. Here is the setup /home/test/java contains the Oracle Server JRE 7.0.25 CentOS 6.4 Here is what getcap returns ...
11
votes
4answers
26k views

Why is the 'sudo' password different than the 'su root' password

On my personal machine, I often type sudo in front of certain commands in order to accomplish administrative tasks. I had hoped to avoid doing this throughout the day, by typing su root and providing ...
66
votes
10answers
90k views

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 ...
49
votes
4answers
38k views

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 (...
73
votes
3answers
12k views

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 ...
19
votes
2answers
38k views

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 ...
9
votes
4answers
18k views

How can I assign an initial/default password to a user in Linux?

I found a guide that explains how to set a user's password. I'm trying to automate it and send an e-mail to the user like: userid created with password XYZ. request to change the initial password. ...
2
votes
2answers
534 views

Is there a way to administrate multiple computers at the same time?

Let's say you have 24 computers. They all have the same Linux or Unix distro on them, with the exact same configuration, but with different users. Is there a way to be able to do the exact same thing ...
-1
votes
1answer
1k views

How to add StartUp application in Arch Linux [closed]

I am using Arch Linux, I want to add a start-up program in Arch Linux. How to add start-up program which will execute after login after every boot ? Note: I am not system administrator, I am just a ...
11
votes
5answers
7k views

Why is it recommended to create a group and user for some applications?

Most of the time, when installing a program from source it is recommended to create a new user and a new group and give /usr/local/<myapp> the recently created user and group ownership. Why is ...
6
votes
4answers
18k views

Getting hard disk drive serial number at the terminal - not the WWN [duplicate]

WWN = world wide name Seagate Constellation ES, model ST3500514NS, a 500 GB 3.5" SATA drive It has "serial number", 9WJxxxxx which is eight characters. It has WWN 5000C5002E47xxxx which is a 16 ...
9
votes
2answers
3k views

How to disable systemd agressive emergency shell behaviour?

By default systemd drops to an emergency shell at the slightest error. For example, if one of the mounts at fstab fails for some reason the system becomes unbootable immediately. I manage dozens of ...
8
votes
3answers
2k views

How to tell when a computer is idle?

I have a computer that is only used some of the time, and I was was wondering if there was a way to have it turn itself off after a period of inactivity. Here's the tricky part, if I was just ...
3
votes
3answers
868 views

How to see what a user is doing in their ssh session

I logged into a server as root and did w, this let me see that a user was editing a file. someuser pts/5 10.117.0.53 14:03 3:25 1.20s 1.14s vi somefile.py Then I disconnected, and ...
2
votes
3answers
27k views

Set a size limit to SAMBA shared directory remotely

I have been asked to set up a shared directory for a colleague on a server I manage. I created an account for him on that server, set up a Samba password with smbpasswd, created a directory and set it ...
1
vote
1answer
1k views

Use Yast with a administrator account instead of the root account

I am looking to disable my root account for security purposes only in witch I use sudo for anything I use on my system that I need the root account for. Witch works fine for if I need to do anything ...
8
votes
7answers
4k views

How to prevent a mistaken rm -rf for specific folders?

I think pretty much people here mistakenly 'rm -rf'ed the wrong directory, and hopefully it did not cause a huge damage.. Is there any way to prevent users from doing a similar unix horror story?? ...
6
votes
1answer
10k views

Sudoers: Allow any subcommand for certain argument

I'm trying to allow a group of users to gain some control over an instance of a dhcpcd service. In other words I would like to have them be able to run: systemctl (start,stop,...) dhcpcd@eth0.service ...
6
votes
5answers
658 views

What are the recommended ways of defending a remote *nix install from a hamfisted admin?

Once in a while (often a long while), I have a difficulty where I execute a command that completely screws up a Linux machine. Most recently, I accidentally mounted-again the root partition (thinking ...
5
votes
4answers
308 views

How do you work with old servers?

I've recently fallen into doing more work on LAMP servers, which is pretty new to me. At first it wasn't a problem migrating my preference files, but as I've grown and learned more, my preferences ...
1
vote
2answers
162 views

Where to put computerdescription in linux/unix (like in windows “computer properties”)?

Question: Is there a place in linux (e.g. debian/ubuntu) to put the computer description? Meaning: are there directives or best practices (I didn't see it in the FHS)? (Maybe a file /etc/hostinfo?) ...
0
votes
1answer
123 views

Run basic administrative commands on GoDaddy

I've logged into my GoDaddy server through PuTTY, I'm connected as ted67942 which is not the root user. I'm trying to run basic commands like sudo, dpkg, su, etc. but they all return the "command not ...
0
votes
3answers
904 views

Get contact information of system administrator from the terminal

Do any of the common Unix/Linux platforms provide a way to query the system administrator contact information from the command line. Obviously a system admin might not include this information when ...