Skip to main content

Questions tagged [administration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19 votes
1 answer
3k views

Proper way to write C code that injects message into /var/log/messages?

In Linux, RHEL-8.10 or later if it matters, I would like to write some C code that takes in various parameters and upon a certain condition issues a system("init 0") to shutdown the system. ...
ron's user avatar
  • 7,162
0 votes
2 answers
66 views

Setting Application Defaults in Linux /etc/default

I posted this question over in ServerFault, but it isn't getting any answers. What does the group assembled here think? I've looked in the local Confluence docs and it's been this way for like ten ...
Chris K's user avatar
  • 60
0 votes
0 answers
20 views

how to manage size of /home .cache and .local folders

running RHEL 8.10 x86-64 on a server with many users, /home is on a separate partition, and all user accounts as defined in /etc/passwd have their account under /home but there is a separate /data ...
ron's user avatar
  • 7,162
0 votes
0 answers
58 views

How do I run pi-hole using Podman?

I am building a home server just for fun and for the learning experience. This is my first time, so I am relatively new to all of this. The plan is to run things like pi-hole and Nextcloud and a few ...
ppflaum's user avatar
0 votes
2 answers
164 views

'apt-get update' failing

So i just now tried to update my installed packages in order to upgrade my Debian version and 'apt-get update -y' threw me this error: apt-get update -y Hit:1 http://security.debian.org buster/updates ...
Flubio's user avatar
  • 3
1 vote
0 answers
112 views

Handling the putty SSH Warning Potential Security Breach (changed host key)

Scenario: Linux server, allowing users to connect via SSH using the putty-0.80.exe ssh client on Windows 10. Work environment, 100+ users mostly NOT computer savvy Linux Server updated from Redhat-7 ...
ron's user avatar
  • 7,162
0 votes
0 answers
155 views

How to Free Up Space on Full overlay and /dev/vda1 Filesystems in a Linux Environment?

I am facing an issue where the overlay and /dev/vda1 filesystems on my server are both completely utilized, showing 100% usage. This scenario has led to operational challenges, and I am seeking advice ...
babel AI's user avatar
1 vote
0 answers
151 views

Performance Co-pilot (pcp) necessary? and pmlogger folder filling up

on a Redhat 8.9 system built from rhel-8.9-x86-64.iso as Server with GUI, I have the following rpm's installed (see below) by default I assume. The folder /var/log/pcp/pmlogger/<hostname>/ has ...
ron's user avatar
  • 7,162
0 votes
0 answers
113 views

How to generate daily report of total bytes written (TBW,DWPD) to disk (SSD) in Linux

What is the best way to get the correct value of total bytes written to disk per day? My goal is to log it over time, so as an admin you can gain some sense of activity on a Linux Server and have a ...
ron's user avatar
  • 7,162
0 votes
1 answer
48 views

xfs_quota bsoft limit explanation

Using RHEL 8.9, I have xfs_quota applied to each home account folder under /home. In doing xfs_quota -x -c 'limit bhard=1g ron' /home I can observe for example a cp fail when trying to copy a single ...
ron's user avatar
  • 7,162
0 votes
0 answers
39 views

How to start openvpn without any daemonization and log redirection?

I want effectively a debug modus, i.e. I do not want openvpn to fork I want all output in the stdout/stderr and nothing in various logs. How can I do that? I could stop forking with a --daemon=0, ...
peterh's user avatar
  • 9,828
2 votes
2 answers
592 views

validity of imposing tmux on users

If you look at STIG reference V-230349 you will see the full text, which I am about to summarize. The initial statement, or rule title, is RHEL 8 must ensure session control is automatically started ...
ron's user avatar
  • 7,162
0 votes
1 answer
60 views

Persistent atop across reboots

atop shows total CPU time since the last reboot. How can I have it persist across reboots?
wdkmaaeo's user avatar
0 votes
0 answers
13 views

enumerating user scopes/slices

I need to enumerate programaticaly all user scopes under a systemd instance. currently i'm doing systemctl --state running list-units user@* which gives me units such as [email protected] Then i use ...
gcb's user avatar
  • 418
0 votes
0 answers
189 views

Creating password protected folders inside password protected samba share

I have already created a password protected samba share which is working fine, but my organizations requirement is as follows: Separate password protected directories for each department Inside every ...
Aparajith's user avatar
1 vote
0 answers
174 views

selinux user_u staff_u .bash_profile permission denied on ssh login

A security rule states RHEL must prevent non-privileged users from executing privileged functions, including disabling, circumventing, or altering implemented security safeguards/countermeasures. All ...
ron's user avatar
  • 7,162
0 votes
1 answer
47 views

Disable printing on ChromeOS

I have a couple of netbooks running ChromeOS for which I'd like to disable printing entirely. Preferably just for specific accounts (my kids), but if necessary, for the entire device. I haven't found ...
Shlomo Engelson Argamon's user avatar
1 vote
1 answer
1k views

How can I extend a partition on a Linux disk without risking data loss or damage to other partitions?

I have a Linux (Virtual) Machine that is running into a storage problem. There is a disk called vda that is split into three partitions, vda1, vda2, and vda3. Originally, vda only had a storage ...
32tv45twgfr's user avatar
4 votes
3 answers
10k views

Copy ssh keys to a new computer

I'm changing between computers. On an old one I have SSH keys (to remote servers, AWS, etc...) Is it considered to be a good practice just to copy the .ssh folder to a new computer ? If not, what is a ...
Michael D's user avatar
  • 163
0 votes
2 answers
392 views

How do I set a password request to connect USB devices?

I need to make it so that when I connect any device to USB, be it a drive, smartphone, printer, etc. The system will ask for a password to authorise this connection, and the device will only connect ...
Porte's user avatar
  • 1
0 votes
1 answer
135 views

Conventions for the PATH variable's value

I am looking for best practices, or at least conventions, for the PATH variable's value. In particular, I would like to know is there any preferred/recommended ordering for the /bin, /usr/bin, and /...
kjo's user avatar
  • 15.6k
0 votes
2 answers
2k views

How to extend /dev/sda5

How to extend the specified partition in ubuntu 22 dev/sda5 It will help a lot in my case if someone help Thanks
Egis's user avatar
  • 11
1 vote
0 answers
356 views

How can I quickly perform a whole-drive dd backup over ssh?

I am trying to periodically back up a machine I am hosting remotely with dd. This is the method that I have found works in the past for machines with small drives. But my new machine has a 75 GiB luks-...
T. Zack Crawford's user avatar
0 votes
0 answers
32 views

How to allow every admin access except viewing and editing a single directory?

We have some servers running our web application as well as nginx, redis and a few other services. I want to grant access to these servers to a system administrator to manage these systems, but I want ...
mhk's user avatar
  • 145
0 votes
2 answers
1k views

useradd prompt user to change password at first login

what option should I add to my useradd command such that when the user logs in for the first time he's prompted to change the password or something? I was thinking about this, but not sure if it's the ...
Professor Seemo's user avatar
1 vote
2 answers
1k views

Applications of fakeroot and chroot

Why are there two utilities chroot and fakeroot when both can fake a privileged access to the user?
Franc's user avatar
  • 299
2 votes
1 answer
329 views

How LVM2 works on low level?

For example i have two disks with sizes 2 and 4 gb. On each of them i create physical volume of the size of the disk and the combine those physical volumes into volume group and create one logical ...
Nolv's user avatar
  • 23
1 vote
3 answers
197 views

Is it possible to prevent all users (including super user) from deleting a specific application? [closed]

Is it possible to turn an application into a kind of a system one (like "Settings" or "GNOME software") so that no user including the super user could delete it?
Pavel Shikhov's user avatar
4 votes
1 answer
17k views

How to enable 'reboot' and 'shutdown' on a fresh debian install

I just installed a new Debian System from the Testing-Repository: Operating System: Debian GNU/Linux bookworm/sid Kernel: Linux 5.15.0-2-amd64 Architecture: x86-64 for some reason ...
nath's user avatar
  • 5,804
2 votes
3 answers
2k views

What Users should be expected in /etc/group adm: group [closed]

After an upgrade on my server system I saw that the system added a user with name "Debian" to a lot of groups. I checked that it has no password set in /etc/shadow, so I think it's benign. ...
user56452's user avatar
  • 171
0 votes
1 answer
88 views

When I boot in centOS 8 I get some sign on my screen

After I boot in my centOS 8 I get icon on display. And nothing is changed when I reboot my system. When I click on this "icon" - left click give nothing, right clik give me option to change ...
Alek's user avatar
  • 1
0 votes
1 answer
270 views

I need some service that trigger actions once after any file is created, modified, deleted, copied or moved

The problem is that I'm not being able to keep track of all my files and I'm also tired of not telling which ones are important and which ones are a temporary file that some random programmer decided ...
Lerian Acosenossa's user avatar
3 votes
2 answers
387 views

Avoiding typing long password repeatedly

I have a remote linux box that I login to with ssh and chrome remote desktop. It is not super critical, mostly used for my hobby projects. I have a pretty long password created using diceware. But it'...
Plasty Grove's user avatar
0 votes
0 answers
100 views

Mount my windows disk partition on a Linux system

The question is whether and how to mount a Win10 partition over the network, so I can access that partition from my Linux machine. My company uses Linux Redhat 7. The company admin allocated me a ...
mozartsg's user avatar
0 votes
1 answer
2k views

How to monitor activity of all WireGuard clients connected to a server?

I've setup a WireGuard server on a Linux server. Is it possible to monitor stuff like bandwidth, DNS requests, websites visited, etc of all wg clients connected to this server?
Zeta.Investigator's user avatar
0 votes
1 answer
372 views

Why is changing password on user account is taking time?

I have created a few accounts on my Linux Mint installation. A few of them have admin privileges. About 30 min ago I changed the password on one of the admin accounts using the Users Settings GUI. But ...
borejwaz's user avatar
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 ...
Lerian Acosenossa's user avatar
0 votes
0 answers
235 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 ...
Curious_Dim's user avatar
0 votes
1 answer
76 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 ...
Timur Zhukov's user avatar
0 votes
0 answers
259 views

virt-manager GUI is not opening on target machine

I am able to connect virt-manager to a standalone production server from my laptop. When I ssh using virt-manager it's not showing the production server, just the other two VMs I have on the ...
mister mcdoogle's user avatar
0 votes
1 answer
291 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 ...
Drallert's user avatar
1 vote
2 answers
1k views

Prompt string not set properly in Bash for new user

I'm using Kali Linux for one of my classes, and part of our first assignment is to create a custom user account using our names instead of the default kali login, however when I do this it messes with ...
Jeffrey Carr's user avatar
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 ...
Patrick Boake's user avatar
1 vote
1 answer
993 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 ...
jr137's user avatar
  • 19
6 votes
2 answers
7k 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 ...
Chris Robison's user avatar
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, ...
S J J's user avatar
  • 31
1 vote
0 answers
2k 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 ...
Ashikur Rahman's user avatar
4 votes
0 answers
224 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:...
pythonator's user avatar
0 votes
1 answer
5k 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
Rebecca's user avatar
  • 103
26 votes
1 answer
75k 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-...
Nicholas Saunders's user avatar

1
2 3 4 5