Questions tagged [administration]
The administration tag has no usage guidance.
231
questions
0
votes
0
answers
20
views
How to find information about similar disks and find which is newer, last written, etc?
I have three branched copies of the same disk and I need to know when they have been used, mounted written, last file created, in order to identify and differentiate them.
I know this setup is so ...
0
votes
1
answer
730
views
tmux two separate panes with some process
I am working with another developer on the same dedicated server. Currently we have one tmux session with one tmux window and multiple panes on that window. This allows us to have a nice workspace ...
1
vote
2
answers
190
views
Weird disk usage on Enterprise Linux
I'm little bit worried about this (note the 99% used space in the root):
$ df -h
File System Size Used Free Use% Mounted To
/dev/mapper/scientific-root 50G 50G 735M 99%...
0
votes
0
answers
219
views
How to disable user accounts from being able to login to other's users accounts from the same machine
I have an admin user account, in which I am able to login normally and also by ssh having enabled 2 step verification.
I want to create a new user account, say it dummy account, from which I will ...
2
votes
1
answer
1k
views
Share files/directories by setgid
To allow write access to a specific group, shared files/folders can be made writeable by default for everyone in this group and the owning group can be automatically fixed to the group which owns the ...
0
votes
1
answer
73
views
What is the worst thing a usermode (ring3) virus could do to home linux installation?
I am interested to know whether is it a reasonable decision to try and restrict my own user account as much as possible to the point where I would need to use my own password much more frequently (now ...
0
votes
1
answer
269
views
Not changing permissions as root on git pull
I've been managing a not very big system for a few months now and there are still a couple of issues that I don't like how they're being dealt with right now.
Currently, there is practically just one ...
10
votes
2
answers
4k
views
Why does the dpkg folder contain very old files from 2006?
I know what Debian package management says:
Do not erase or alter files in /var/lib/dpkg/.
However, there are 11,501 files in that folder dating from 2006:
$ ls -l /var/lib/dpkg/info | wc -l
11502
...
1
vote
1
answer
942
views
limits.conf not working for SSH connections on Fedora 33
I am trying to set a limit on a group called rlimited. I have the following in my /etc/security/limits.conf
@rlimited hard cpu 5
The same file exists in the /etc/security/limits.d/ folder.
I've also ...
4
votes
0
answers
219
views
Missing space on root partition
I know, there are dozens of similar questions everywhere. I have looked at many of them, and checked what their answers suggested, to no avail.
My root partition (btrfs) is almost full according to df:...
6
votes
2
answers
6k
views
How can I list all currently logged-in users?
I have a system I'm managing (running RHEL 8) that has multiple users in our small office, who log into it in various ways -- locally at the console, remotely via SSH and NoMachine Workstation. When I ...
8
votes
3
answers
73k
views
Where Is MySQL installed on My Machine?
Recently I installed MySQL server on my Debian machine using Advanced Packaging Tool, and I'm curious to know where it's installed and how I can find all the source files and user databases.
I've only ...
1
vote
2
answers
133
views
Equivalent of newusers for groups
The newusers command is useful for adding or modifying users in bulk. Is there an equivalent command for managing groups?
0
votes
1
answer
41
views
Creating new user by creating new folder
I would like to ask a doubt regarding the creation of new user in Ubuntu. Normally we use "Users and Group" GUI application, terminal, etc for creating new users. But I would like to know, ...
1
vote
0
answers
1k
views
How to open a text file as administrator in Pop OS 20.04?
I have just installed Pop OS 20.04. Previously I used Ubuntu 18. I need to open a text file in root directory as administrator. In Ubuntu I could do it by installing nautilus-admin, then after right ...
0
votes
1
answer
4k
views
Give a user admin right to run yum on centos 8
I give a user admin access with: usermod -a -G wheel userX
but when I log in with userX, I am not able to run yum. What do I need to do?
Thanks
1
vote
2
answers
2k
views
Script to see if user has logged off
I have created this program to see if a user is logged on and it checks every minute.
if [ "$#" -ne 1 ]
then
echo "Usage: mon user"
exit 1
fi
user="$1"
until who | grep "^$user " > /dev/...
12
votes
4
answers
7k
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, ...
25
votes
1
answer
71k
views
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-...
4
votes
1
answer
3k
views
How does iptables recognize packet state?
Consider these two sets of rules:
Set A
-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
-A INPUT -j REJECT
-A OUTPUT -j ACCEPT
Set B
-A INPUT -m conntrack --ctstate ESTABLISHED,...
9
votes
2
answers
10k
views
What is the routing behaviour when two or more default routes?
I have two ISP at the time, connected to the same machine. I added both of them in the routing table as default. However, only one connection is used.
$ route
Kernel IP routing table
Destination ...
0
votes
0
answers
463
views
How to speed up the usb drives?
Lately I'm using usb 2.0 drives to move things around,in order to free a bit of local traffic, but unfortunately it takes so much time to write things.
A first approach is to use a no sync feature ...
0
votes
0
answers
1k
views
“who/w” command fails to list active user logged in from SSH client session
I (logged in as "user1", has root access) was following this to experiment with kicking a client ssh session logged in as "user2" (has no root access), connected from the same network from a laptop. ...
0
votes
1
answer
2k
views
telinit 1 and run a command there
I need to do some maintenance on a bunch of Debian (Wheezy) systems, and it has to happen at run level 1. But not all machines have a keyboard and a screen; some are even located somewhere else. So I ...
2
votes
2
answers
169
views
How much safe is to allow a stranger Wordpress admin access to a CentOS node?
I am creating a website with Wordpress 5.2 on a CentOS Linux 7.7.1908 node. PHP version is 7.x.
I have asked assistance to the creator of the theme that I am using. The creator asks me admin access ...
0
votes
1
answer
2k
views
How to switch to another user on the terminal in SLES 12?
I created a user (useradd -d /home/newuser -c "My new user" -s /bin/true newuser), set a password (su newuser), and want to work under this username. But I cannot switch to this user. No error ...
1
vote
1
answer
2k
views
How do you cleanup after deleting an LDAP user on RHEL 7?
We have a small network using 389 Directory Server for LDAP. We make LDAP users, those users log on to various machines in the network, and then sometimes we delete those users. However, after ...
0
votes
2
answers
6k
views
Unable to mount LV: "mount(2) system call failed: Structure needs cleaning," but e2fsck says clean
I was trying to install an old optical drive into my system, which turned out to be having problems, so I pulled it out again, but upon rebooting back into Ubuntu 18.04, I'm unable to mount my 3-drive ...
1
vote
0
answers
560
views
DMI table unreliable?
From the dmidecode man page :
the presented information [is] possibly unreliable.
They also add:
More often than not, information contained in the DMI tables is inaccurate, incomplete or ...
1
vote
0
answers
378
views
Debian 'bullseye' - no Terminal without GUI on Function Keys F1-F12
I had some serious problems with a Gnome upgrade from 3.32.0 to 3.34.0. I missed out the upgrades done with apt full-upgrade and my gnome-shell did not start anymore.
However I wanted to fix this ...
3
votes
1
answer
3k
views
Managing cron jobs across multiple servers
We are facing a problem with managing cron jobs over multiple servers with dependencies.
I hope there is an opensource central management project that I can be used to handle that and report the ...
2
votes
1
answer
1k
views
How to limit access to websites for one user?
I need to limit all websites for certain user (not a root) but one website should be available for example www.allow-website.com and all subdomains too www.allow-website.com/*.
This lock should work ...
48
votes
13
answers
9k
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 ...
3
votes
1
answer
18k
views
Add "domain admins" group in sudo users [duplicate]
I want to give access domain admins group to sudoers access.
I have come across with many commands but nun of works for me.
fname.lname ALL=(ALL) ALL
With this command i can give access to a ...
0
votes
0
answers
37
views
Getting a rolling release just right and then freezing it: a good idea?
I really like how rolling releases offer the latest versions of everything, because sometimes that is important. However, once I have things working well, I am not that anxious to keep updating to the ...
11
votes
4
answers
34k
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 ...
1
vote
1
answer
132
views
Why does the solaris-8 "scadm shownetwork" command show a different IP address that the one that is actually configured?
When I run the scadm command, the IP Address is different than the one I have configured on my server:
55 /usr/platform/SUNW,Sun-Fire-V210/sbin> uname -a
SunOS UI1 5.8 Generic_108528-29 sun4u ...
76
votes
3
answers
13k
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 ...
0
votes
1
answer
1k
views
How do I safely perform the below changes to network parameters on Solaris 10?
I need to change and test some TCP/IP network parameters on a Oracle Solaris 10 as a possible workaround for a bug in 'Oracle Hyperion EPM 11.2.1.0' in the development environment.
I am not a Solaris/...
1
vote
1
answer
36
views
A single unified account for all users on a single machine, while preserving separate credentials
So this is more of a reverse-engineering question.
We have this machine at work, where anyone can login using ssh. ssh johndoe@gateway01. However! Once logged in, the user the person is logged in as ...
20
votes
7
answers
147k
views
How do I add an entry to my crontab?
I am using crontab for the first time. Want to write a few very simple test cron tasks, and run them.
$crontab * * * * * echo "Hi"
doesn't produce anything.
crontab */1 * * * * echo "hi"
says */1:...
-1
votes
1
answer
83
views
How to find if partition is soft partition or not - Solaris 10
How to find if partition is soft partition or not in solaris 10?
1
vote
1
answer
4k
views
How do I check the uptime of the system with a certain number [duplicate]
I know how to check uptime of a system with the top or uptime commands. But what if I need to do this for a system with a specific id?
8
votes
2
answers
4k
views
Should I use useradd or adduser?
I am trying to add a new user to the system. I am confused though which command to run: useradd or adduser?
3
votes
1
answer
74
views
Which programs configure the network based on the settings in /etc/network/interfaces?
I have installed Stretch and I find that NetworkManager gets in my way more often than not, and I would rather familiarize myself with network interface administration at a lower level based on the ...
3
votes
1
answer
292
views
static IP address for remote administration of a distant home computer via ssh?
I've set up the PC of my grandmother with Debian and DHCP. I have to administer that PC, so the best option is obviously ssh. The problem with that is just DHCP changes obviously the IP address from ...
0
votes
1
answer
458
views
useradd with no options
When I create a user with useradd (no option) I can later add his passwd by using passwd new_user.
How can I create his correct home directory (with Desktop and Templates inside) and all other ...
4
votes
1
answer
273
views
Distributing updates to VirtualBox images with bandwidth efficiency
I'm currently responsible for a lab of machines that all need to run the same virtual machines. I want to automate my current setup of distributing VirtualBox virtual machines via rsync (erasing any ...
3
votes
3
answers
833
views
Are there any practical reasons for setting a maxlogins limit for users in limits.conf? What are the benefits?
Why should I set a maxlogins limit in /etc/security/limits.conf? In other words, are there any performance-related and security-related benefits to be gained?
I have only three users on my machine, ...
0
votes
1
answer
4k
views
Understanding output of ps -ef on linux
When I do ps -ef on my Linux box, I get:
UID PID PPID C STIME TTY TIME CMD
Please help me with meaning of C,TIME.
is the TIME , the actual cpu time allocated to the process?