Questions tagged [administration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
190 views

StickyBits NFSv4 ACL to stop user movement of folders

Backstory: Client has a mixed environment of POSIX and NFSv4. The POSIX blows away the underlying NFSv4 ACL every-time they touch it or do anything with it. They say that users are able to take a ...
0
votes
1answer
41 views

How to assign dirfferent allocation ratios to different swap files in linux?

I need two swap files, one on my ssd drive (the ssd-swap file), and the other one my hdd drive (the hdd-swap file). Since the read/write speed on my ssd is about 4 times as fast as my hdd, I need the ...
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 ...
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 ...
41
votes
5answers
164k 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 ...
0
votes
1answer
120 views

hp-ux admin tool lsof fuser for B.11.31

centrpt:oracle> uname -r B.11.31 We need lsof and fuser as there are unclosed file handler so we cannot reclaim disk space after reboot. Where we can get the tool for this dated version of HP-UX ??...
1
vote
1answer
1k views

Count the number of file descriptors opened by a process with lsof

I need to check the number of file descriptors which are open by a Java process. The output of lsof is almost 40000 lines long. Here's just the beginning: COMMAND PID USER FD TYPE ...
1
vote
1answer
85 views

What Linux distro is the following one? [duplicate]

I have to find out which Linux distribution is running on a server. From uname -a I have the following output: $ uname -a Linux lvmfacelifttap2b 3.10.0-514.6.1.el7.x86_64 #1 SMP SUn Dec 11 12:25:18 ...
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 ...
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 ...
0
votes
1answer
48 views

How to prevent temporary files from being removed?

I have Ubuntu 14.4 on my machine, and also have downloaded Android-SDK on it. When I install some package in Android-SDK, it does three things: it downloads the package into a temp folder, when ...
39
votes
3answers
110k views

How to make Fedora user a sudoer?

I want to give a Fedora user sudo privileges. How do I do that?
0
votes
1answer
64 views

Statistics on IT incidents in Unix and/or Linux environments [closed]

I am interesting in what are the possible most common incidents admins face in day to day Unix/Linux environments (i.e. service down, file system full, cpu spike, memory full) administration. Are ...
3
votes
1answer
2k views

Prevent scp from overwriting existing files?

Have been googling this for a while, and the problem is not so much of one where I trust my users to "do the right thing" and have them use rsync with various options to avoid overwriting files. I ...
3
votes
3answers
297 views

Creating recovarable disk image [closed]

Laptop I want to buy comes with preinstalled windows 10. I want to install linux on this laptop but I want to have option to recover windows (reset to factory settings). Because of that I want to make ...
1
vote
1answer
84 views

Assigning Privileges to System Accounts

I'm trying to move away from running cron-scheduled jobs with root, so the thought process is to create a system account with no login (/dev/null home, /sbin/nologin shell) to run each cron job we ...
3
votes
1answer
146 views

How do I give a user shell access that requires a key

This might be a stupid question, but what process should be taken to add a user to a system and provide them access when the system requires the use of a ssh keys? For example on a system that doesn'...
8
votes
3answers
328 views

Linux/Unix variant for training system administrators

Is there a Linux/Unix based operating system used for training sysadmins? Some bugs would be deliberately included in the system and the training candidate is supposed to solve all of them. It should ...
1
vote
1answer
1k views

Grant group A's members 'sudo su' access to group B's user accounts

Assume I have a collection of unprivileged users (user01, user02, user03, ...) who are members of a Linux security group called 'x_users': $ groups user01 user01 : user01 x_users Further, assume I ...
-2
votes
1answer
368 views

Windows anti-virus and anti-malware available on Linux? [closed]

In relation to scanning a Windows partition for malware I see that both AVG and Avast install on Linux painlessly. Is there a full list of free-as-in-beer Windows anti-virus, or general anti-malware ...
2
votes
1answer
65 views

Disable accounts and print info message on attempted login

Other people log into my Raspberry Pi via SSH. It runs Ubuntu Mate 16.04 with OpenSSH. I want to disable some of the accounts but not delete them. Now, I could just delete the passwords (which ...
1
vote
1answer
362 views

Where is the rpath utility, or how do I install it?

I installed an updated OpenSSL on Solaris 11.3 running on Intel hardware. OpenSSL needs its path adjusted because the gear was installed in /usr/local. According to Changing ELF Runpaths on the ...
1
vote
1answer
284 views

Which package do I need for libtool on Solaris?

We are a free and open source project, and we are part of Oracle's developer program. We have access to the online developer packages. Solaris 11/64-bit Intel does not include libtool in its GNU gear: ...
10
votes
1answer
6k views

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 ...
0
votes
1answer
79 views

Centos 7 --> Track if users attempt to access a folder/directory they do not have access too?

If Bob tries to access something like /home/Code/TopSecret for example. The system wouldn't allow him to access this without having the permission. I would like to know about these attempts. Is ...
0
votes
1answer
435 views

how to find the logged in user in linux running oracle session

i like to find out the logged in user to linux and running some session . we cannot use the os_user option as we all use sudo user before login to oracle. so how to find out the super user who logged ...
58
votes
3answers
8k views

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 ...
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, ...
1
vote
1answer
58 views

How did my Hosts file change?

Let me start this by saying I do not or never have had Admin access to my Mac. Issue: Recently when I tried to navigate to the URL dev.local.com which was mapped to a specific IP address in my Hosts ...
0
votes
1answer
2k views

Fun, tricky and hard questions for Unix/Linux Admin interview [closed]

I am now preparing process of recrutation for group of Unix/Linux Administrators and I was wondering if maybe you have idea for fun or tricky or hard questions to ask the candidates in order to test ...
1
vote
1answer
579 views

Unidentified network connections

I have an external-facing ftp/webserver (with virtual hosts) running Ubuntu 12.04LTS, and I have some concerns about some network traffic I'm seeing. Some background. I tried to be as preventive in ...
1
vote
0answers
91 views

system admin problem simulator (like GNS3 for networking)

some month ago I read an article with advices for linux system administrators candidate and it referred to some kind of virtual machine with common problems for system admin to solve. The point is ...
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 ...
1
vote
1answer
95 views

Embedding a cmap in moinmoin

I'd like to embed a cmap in a moinmoin wiki page. I generated the cmap using dia. I then copy pasted the generated html code, modified it to point to the png image I attached to the wiki. However ...
2
votes
2answers
49 views

Save a perfect configured desktop

I'm wondering how I can persist my perfect configured desktop system. I have - installed a fresh new debian - installed all my applications and tools I need (from vim to eclipse) - override my ...
1
vote
1answer
5k views

Why can't I create a symbolic link in /usr/bin?

I'm trying to create a sym link in my /usr/bin directory as the command drush8 But every time I do it, it doesn't show up in /usr/bin but instead says it already exists. It's thinking that it exists ...
4
votes
2answers
1k views

Tool to watch other ttys for linux?

BSD systems have a neat watch tool for snooping other ttys : Have you ever had a user login to your box and then ask you for help? Or have you ever been curious as to what your users are doing on ...
1
vote
1answer
637 views

What's the difference between lpasswd and passwd commands?

Studying the CentOS/RHEL sysadmin manual, I can't understand if there are or what are the differences between these commands.
1
vote
0answers
27 views

How does shutting down require sudo except when done through a GUI? [duplicate]

If I want to shut down my machine programmatically or on the terminal, I must do sudo poweroff or sudo shutdown. If I want to shut down my machine through my window manager and desktop environment, I ...
2
votes
0answers
173 views

What is the command erepc? Is this malware?

I noticed that my system was running slower than normal so I ran a top command. Hogging a ton of my CPU was a process called erepc that I can find no information on. PID USER PR NI VIRT ...
1
vote
1answer
419 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
2answers
743 views

Unable to read file even though in same group

I created new symbolic link to one file(located in another user home directory) for the user. But unable to read even though the user in same group and the file permissions are 755. [lmurugan@...
5
votes
2answers
3k views

How to disable root account on openSUSE?

Is there a way to disable the root account completely on openSUSE so you can administer your system like the way you would do in Ubuntu?
0
votes
1answer
76 views

How to avoid receiving warning message from a mount system

I asked similar question in superuser, no satisfying answer. Re-post here with some update. I mount a remote host to my system during debug because the source code is on that host, but after I do the ...
2
votes
1answer
244 views

When is a port considered being used?

I am getting port in use cannot bind on process restarts. I am trying to find out when a port is considered being used? Is it only when in LISTEN mode? Can it also be if a connection is open to the ...
-1
votes
2answers
412 views

How to keep a development environment clean? [closed]

Working as a hobby developer on Debian/Jessie64 mostly C++ but also assembly, python, java, c, c# like compiling programs on my own like looking into other's source it results into many packages(...
1
vote
1answer
1k views

How can I learn some advanced logrotate techniques? [closed]

The logrotate section in the Linux administrator's handbook is very brief. The man page is ok but lacks examples. Where can I find some more comprehensive information, examples, and best-practice ...
1
vote
2answers
129 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
1answer
624 views

Cannot edit visudo

I have to give my user permission to run sudo. I am using CentOs # uname -a Linux lab-hv1-centos1 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux and have ...
0
votes
2answers
82 views

Compare Linux configuration with default

My system fails to upgrade. I suspect it was breached. Is there a way to compare system configuration to default version that should be at this date and kernel version? My current system is Debian, ...