All Questions
24
questions
1
vote
1
answer
34
views
Linux, centos, resetting password
While resetting password after commands:
rd.break
mount -o remount,rw /sysroot
chroot /sysroot
I entered new password all done correctly at the end created file reliably using
touch /.autorelable ...
0
votes
1
answer
829
views
Converting linux file to folder
On my CentOS , i was on the following directory:-
/home/coolcatg
and that directory contain a website folder named "public_html".
I simply copied that folder to /home directory :-
[root@server ...
0
votes
1
answer
132
views
Dos2unix different behavior on macos and centos?
I have a file which I need to convert to unix format, so I am doing dos2unix filename.txt. But the format of the file after conversion is different on CentOS when compared to the macOS format.
I have ...
0
votes
1
answer
8k
views
nfsd: last server has exited, flushing export cache
Brief Summary on the issue:
NFS share on a CentOS6.9 system properly mounts and displays the directory when mounted on a Windows or Linux system but has trouble displaying the directory when mounted ...
0
votes
1
answer
603
views
Inconsistent output of `du` command
Why is the output of
du -sch ./
not identical to
du -sch ./*
E.g. I ran du -sch in my user's home directory and got 51GB but running du -sch * in the same directory results in 47GB. At first I ...
0
votes
1
answer
3k
views
/usr/lib64/python2.7/site-packages/rpm/_rpm.so: undefined symbol: rpmpkgVerifySigs
My first time here to ask question.
Hope my question could help more friends after solved.
Base:
System Version: CentOS 7.2 64 bit
Problem:
Wrongly remove python that comes with the system. And ...
0
votes
1
answer
1k
views
curl is executed twice from crontab
I have installed centos 7 and PHP 5.6.29 on my server, and I set up crontab to run this command every 15 minutes:
*/15 * * * * curl http://example.com/check.php
but the command is run twice. Is ...
2
votes
1
answer
3k
views
using extended attribute on samba
I have a samba server and a mix of Mac and Windows clients. On those clients I have an application that require to know the full path of files on the samba server. For the samba server, we are using ...
2
votes
2
answers
2k
views
Malware ( cpubalence ) - information and removal
It seems I have a Linux host ( CentOS ) infected with some kind of malware.
There is an executable called cpubalence which has been created in /tmp/. It seems to start itself up and consume 100% CPU ...
0
votes
1
answer
144
views
store into variable a sudo result
I have this simple script
#!/bin/sh
ISUP=`sudo /etc/init.d/jboss7 status | grep running`
echo "ISUP: " $ISUP
if I run it manually it works fine
[jboss@suc072-ipos ~]$ sh a.sh
ISUP: JBoss AS 7.1.1 ...
2
votes
1
answer
967
views
Batch renaming JPG filenames in CentOS 7
I have about 80 of these files in my directory.
-rw-rwxr--+ 1 vagrant vagrant 38122 Nov 13 12:19 CRMPicco RFC16 Women's 80.jpg
-rw-rwxr--+ 1 vagrant vagrant 101286 Nov 13 12:19 CRMPicco RFC16 Women'...
11
votes
3
answers
23k
views
what happens when you have 2 network interfaces to the same network in a Unix/Linux OS?
What will happen if you have 2 network interfaces to the same network where the default gateway/router is?
e.g
network interface e1000g0 - 192.168.1.50
network interface e1000g1 - 192.168.1.51
...
1
vote
1
answer
2k
views
Accepted publickey for userx from y.y.y.y (ssh authentication)
Server A and B is setup for autoSSH
I am on ServerA (y.y.y.y) and is accessing ServerB.
I understand that A's public key is store in B and is use by B to encrypt the challenge to A when A connect. ...
10
votes
4
answers
10k
views
fdisk - do i need it or can i make a filesystem directly?
i read about fdisk being able to creation partition / which is to break down a physical disk into several logical partitions.
If i intend to utilize the whole disk as a whole, is it still necessary ...
0
votes
1
answer
4k
views
How can I disable FTP access for users
I want to temporarily disable the FTP Access of the FTP users which are added from Cpanel
I have tried
chsh -s /sbin/nologin aadmi which says "chsh: user "aadmi" does not exist."
Tried
sudo echo ...