Questions tagged [sysadmin]
For creating or editing programs that perform system administration tasks. Non-programming questions (including those about system administration operations or sysadmin tools) generally belong on Super User or Server Fault.
600
questions
0
votes
0
answers
16
views
Issue with User Creation & SSH key pair creation using Ansible
I'm my scenario my requirement in my dev server is to Take the users' first names' and create a user, we have a devs group in our developer server, and now want to create ansible-playbook with the ...
0
votes
1
answer
24
views
Why chronyc makestep does not synchronize time instantly?
On a CentOs 7 machine, I have a service that modifies the timezone and just after that it makes a request to S3 to download some binaries. In fact, the request fails with the well known error message:
...
0
votes
0
answers
18
views
Chroot jail vs normal ssh user without sudo rights
What are the advantages of a chroot jail compared to a normal ssh user without sudo rights?
For me it looks like the same
-1
votes
1
answer
72
views
Ubuntu mailx attach file without the whole path as the filename [closed]
I use the below command to send emails in an Ubuntu server. This seems to attach the testreport.csv file with its full path as the filename.
echo "This email is a test email" | mailx -s '...
0
votes
0
answers
14
views
How can a program be authorized to use another disk?
To put it simply, I have a C disk and a D disk. I would like to install the most things on my D: because the one with several Tera.
The problem is that some programs like IntelliJ or Unity (even run ...
0
votes
0
answers
156
views
TypeError: Workbook.__init__() got an unexpected keyword argument 'options'
I am getting this error
Traceback (most recent call last): File
"C:\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args) File "C:\Users\achille.gouttard\...
0
votes
0
answers
25
views
How to revert swapping caps-lock with esc
I am using this handy command in Arch setxkbmap -option caps:swapescape to swap my capslock with esc but for gaming I need this to go back to default. Is there any way to do that?
0
votes
0
answers
70
views
robocopy Script to copy files with specific characters in them
I created a super basic robocopy
robocopy C:\temp F:\temp /xo
However I want to copy files from C:\temp that only contain the number "852" in them. These are logs for a on side program we ...
0
votes
0
answers
20
views
Connect local disk when ad account login to server by rdp
Do you have any idea how to force local disks and printers to be connected to the server with the ad account during rdp connection? If I log in with a local account to the server, it maps correctly, ...
0
votes
0
answers
10
views
Why are wtmp and numerous other log files populated wtih binary instead of text?
in /var/log/ there are many log files, some are plaintext, others are written in binary.
What is the purpose of this? I assume security but I can't find a straight answer as to why.
0
votes
1
answer
31
views
Intel AMT 0.0.0.0
As part of testing on working laptops, I'm trying to organize a connection via Intel AMT (Active Management Technology). All settings, according to the official manuals and guides of enthusiasts, have ...
1
vote
1
answer
32
views
Nginx redirect rule with arabic characters
I need to create an Nginx rule that redirects /ae/ar/أسافر%20من%20أجل/ to /ae/en. I've tried with these two rules:
rewrite (?i)^/ae/ar/أسافر%20من%20أجل(.*)$ http://$host/ae/en? permanent;
rewrite (?i)...
0
votes
0
answers
20
views
How to get user specific cron logs from its own userspace?
Context
Hello, I'm working on a project on a AWS EC2, in which I have a script running periodically thanks to crontab.
This script owner is ec2-user, so I run this script from the crontab owned by ec2-...
0
votes
0
answers
56
views
how to simulate button press during installation through bash script
i am trying to automate a package installation on ubuntu using a bash script..
i am connected through SSH
but during the installation, the setup shows a dialogbox asking for password and other details....
2
votes
1
answer
240
views
ClientAliveInterval is not closing the idle connection
I have the task to close the idle ssh connection if they are idle for more than 5 minutes. I have tried setting these value on sshd_config
TCPKeepAlive no
ClientAliveInterval 300
ClientAliveCountMax 0
...
0
votes
0
answers
16
views
Backup AWS Workspace file system
I have an workspace in AWS workspace with a lot of configuration files, installed software and files with templates, shell scripts and code, so it's fully configured.
My problem is that when I try to ...
0
votes
1
answer
445
views
No module named 'encodings' on OpenSuse
A whole host of actions keep returning to this problem:
pip install encodings
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
...
0
votes
1
answer
46
views
Can I set up Wal Archiving on a three years old Postgres database?
If I set up Wal Archiving on a three years old Postgres database (used in production); do the Continuous Archiving and Point-in-Time Recovery (PITR) will work from the beginning? Will I have all the ...
2
votes
0
answers
44
views
Laravel 5.1 - Some pages are not found on production serveur - "Page you are looking for could not be found"
I have a problem with some "routes" in my old Laravel 5.1.46 project.
When I try to access to some routes, like admin/exercices/creer or admin/exercices/1928, I have this: "Sorry, the ...
0
votes
1
answer
44
views
AWS IAM policy Credential Settings
Based on my current users scenario ,I was thinking it would be useful to have an IAM policy that allowed 'ViewAccountPasswordRequirements' and 'ChangeOwnPassword'. I'm not sure why that wouldn't be ...
0
votes
1
answer
68
views
Which user own the postgres process?
I installed the postgresql rdbms using standard:
sudo apt-get install postgresql
and now I can see the binary:
-rwxr-xr-x 1 root root /usr/lib/postgresql/12/bin/postgres
which means the root user ...
0
votes
1
answer
30
views
Python Scan for ICACL
I am working to solve an issue that my company is currently having, We have an extremely large share drive that is over 20 years old. There are so many security groups attached to some of these folder ...
0
votes
1
answer
84
views
Extracting JVM stack trace from a heap dump (hprof) with a command line tool
I want to automate the extraction of the stack trace from the JVM crash heap dump file on a headless server. Is there a non-GUI solution for this?
0
votes
1
answer
118
views
How to make an HTTP app HTTPS with HAProxy and SSL Termination
Where I work theres an web app that is hosted on windows servers, all users access the application using HTTP, not HTTPS. This is due to some restrictions that the dev team could not solve.
So I ...
0
votes
1
answer
88
views
PowerShell, How to combine two sets of unrelated data into one array or csv
I'm trying to write a simple powershell script to pull software and service data off a machine. So I'm trying to figure out the best way to consolidate the data onto one cvs file instead of two ...
1
vote
0
answers
35
views
Redhat install python package
In the RedHat admin guide it goes to some length to say that python packages should not be installed with pip as root
Rather you should enable the python environment using sc enable and create a ...
-1
votes
2
answers
52
views
How to regain access to home folder after changing group on own VM? [closed]
How do I regain access to my home folder?
I was trying to get shared folders to work in VirtualBox and I changed the user group to vboxsf by invoking
sudo usermod -a -G vboxsf dev
I rebooted then I ...
0
votes
1
answer
75
views
How do I remove a qos from an account in Slurm
I have a system with a slurm scheduler. I have account which has access to a particular qos, and I would like to remove it from the account.
What is the command?
I have tried leaving the qos off, with ...
1
vote
0
answers
277
views
kubernates rook+ceph OSD full delete data
I have a situation where my OSDs are full
1 full osd(s)
2 nearfull osd(s)
2 pool(s) full
and deleting the PVC is just stuck in "terminating". I tried the trick of forcing finalizers to null, ...
0
votes
1
answer
28
views
Sys Admin migrating vm to azure
I just want to ask what's the best way to migrate a .ova file to azure. I have read many ways but i want to know which one is the most efficient. The os is oracle linux and I want to deploy an Oracle ...
2
votes
4
answers
3k
views
How to to trace malware orignation on ubuntu server and stop it
I have a ubuntu server with self hosted giltab-ce and two days ago my server started using 400% CPU.
My hosting provider advised me to update my Gitlab (which was version 13.6.1), that I updated to 13....
0
votes
1
answer
194
views
How do I add the local users to my docker container?
I want to know how I can add the local users of my server to a docker container. I don't need to import their files, I just need a username/password/privileges with new home directory in the docker ...
0
votes
1
answer
128
views
How to exclude filesystems with ansible
I'm writing a playbook the change file and folders permissions on a Linux server.
Until know it is working and looks like this:
-
name: Playbook to change file and directory permissions
hosts: all
...
0
votes
0
answers
68
views
Setting up users to use the batch system on LSF Spectrum
I have set up a new LSF Spectrum cluster on IBM cloud, using the default CentOS 7 image. I can run jobs as the default lsfadmin user. My question is: how do I set up other users to do the same?
...
0
votes
0
answers
37
views
Sentinel breakout value in Powershell script do-while loop?
I'm an intern, here's a powershell script that continues to loop asking for the person's username and changing the default value, if it's not right I can type no but it just keeps going because the ...
1
vote
0
answers
25
views
Bypass `-C` flag when unzipping tar archive
I have a .tar.gz archive with the following structure:
opt/client/py/utils/mappings/templates/config.json
opt/
opt/mag/
opt/mag/sw/
opt/mag/sw/apps/
opt/mag/sw/apps/service/
opt/mag/etc/
opt/mag/etc/...
0
votes
1
answer
183
views
db_nmap metasploit using hosts in postgres database
I am using metasploit and attempting to run a db_nmap against all the hosts I imported from an nmap run that I saved into a .xml file. So all the hosts are in my metasploit postgres database as ...
0
votes
0
answers
26
views
ReWrite URL in Nginx
I want to rewrite subdomain to get parameter in nginx if the subdomain not in conf.
i have *s1.example.com*, *s2.example*, ...
if *url* not in this, I want to redirect to *s1.example.com?=subdomain*
...
1
vote
1
answer
121
views
Nginx caching issue ( 200 OK (from disk cache) )
Hi Can anybody tell why i am getting this caching from disk on an nginx web server.
I am worried that the changes we made are not visible to visitor of the site. How can we disable this cache.
0
votes
1
answer
103
views
Script that changes ip for remote server
I need a powershell script thats changes a remote server to specific ip address and gateway
I found some scripts online but the problem is that i have to specify the old ip address,
but i want the ...
0
votes
0
answers
20
views
Trouble with Dash coin, The underlying connection was closed: The connection was closed unexpectedly
I'm trying to call Dash coin RPC client using NBitcoin library.
It worked fine. I installed new Dash core client and every time I call, I get this error.
Function: ImportManager.ImportDeposits. ...
-1
votes
3
answers
116
views
How would a sysadmin calculate sysadmin day?
Sysadmin day is the last Friday of July.
Sysadmins tend not to stray too far from the terminal, where they belong.
Sysadmins grok man {,/usr}/bin/*.
Sysadmins sometimes stray into interpreted ...
0
votes
1
answer
30
views
Performance problem with Ubuntu file server
I'm hoping someone can point to a bottleneck for me.
See the attached diagram.
The Ubuntu server is attached to a bridge, remote to the rest of the network.
Performance all over the network is good, ...
0
votes
1
answer
105
views
Stop .git/index from changing its permissions
How can I prevent .git/index from constantly changing its permissions and ownership?
I run ls -al .git/index and see that the file is owned by root.
I change the permissions with sudo chown -R $USER:...
0
votes
0
answers
175
views
Powershell Register-ScheduledTask with user login or not checked throwing error
I am registering a task via taskscheduler powershell cmdlets. I need to register a task with "weather user lognon or not with do not store pwd checked". I tried two below ways but none of ...
2
votes
0
answers
116
views
WinGPG: "Assign 'Ctrl+Alt+E' to 'Encrypt files/clipboard' failed."
I am trying to install WinGPG For Windows 32/64bit version from scand
After download and install, I click the lock icon to open WinGPG and I see 4 errors starting with: "Assign 'Ctrl+Alt+E' to '...
0
votes
0
answers
31
views
Sudo Access to authorization principals
Can I give sudo access to the authorization principals of a user instead of giving the access to the user itself.
For example: I have a user called root and it has two authorization principals 'admin' ...
0
votes
1
answer
500
views
Apache Server is down after PHP upgrade from PHP
I have updated the PHP from PHP 5.6 to PHP 7.4. After the updated web Server apache, is down.
The Error is
"httpd: Syntax error on line 39 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 ...
0
votes
1
answer
84
views
Reg.exe not setting binary value as expected
Not strictly Powershell, but have it nestled within. I'm trying to add this regkey to hide the taskbar:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2]
"...
-1
votes
1
answer
42
views
How can we check our mail service and how to stop outgoing emails from linux Server [closed]
How can we check that what Mail service are we using in Linux. How to stop outgoing emails from mail server.
Thanks