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
841
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
133
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
607
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
145
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
5k
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 ...
1
vote
2
answers
2k
views
What will happen if my DB server runs out of disk space?
I'm seeing a huge difference of free disk space between
df -h
and du -sxh /
I've understood in my question Resolving unix server disk space not adding up that du -sxh / is a better estimation as ...
3
votes
2
answers
2k
views
Resolving unix server disk space not adding up
I'm trying to evaluate where my disk space on my unix server is distributed. In order to see disk space current status I'm running:
df -h
But when trying to evaluate what is taking the disk space and ...
1
vote
3
answers
3k
views
Why am I getting "No such file or directory" after install?
If I command convert --version it shows this.
bash: /usr/bin/convert: No such file or directory
All what I did was this
1. $ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
2. $ ...
5
votes
1
answer
31k
views
How can I remove "ImageMagick" completely?
I think I accidently did install 2 ImageMagicks to my CentOS 5.8 before.
Version 6.2.8 was removed by
yum erase ImageMagick
However, it still shows this when I typed $convert -version
Version: ...
0
votes
1
answer
264
views
PPTP daemon client cannot download full web pages
I have a PPTP daemon V1.3.4 running on a CentOS server.
My client connections come from both Linux and Windows machines. When PPTP connection is active, the clients are unable to download full web ...
28
votes
3
answers
143k
views
How to find which files and folders were deleted recently in Linux?
I am having one particular folder (/home/sam/officedocuments) which is having hundreds of folders and files.
I think I deleted some files and folders by mistake but I'm not sure.
How to find which ...
2
votes
2
answers
2k
views
Why there is difference between output of linux command du and ls?
I have a file in linux machine whose size is 3404494030 upon doing "ls -l". When I do "ls -lh" it shows 3.2 GB which is correct when converted from bytes to Gigabytes. But when I do "du -h" for the ...
5
votes
1
answer
13k
views
What's the difference between "uname -r" and "uname -v"?
I am using CentOS 6.2. In the man page of uname (i.e., man uname), it says:
-r, --kernel-release
print the kernel release
-v, --kernel-version
print the kernel version
...
1
vote
1
answer
2k
views
Can't install subversion over yum
How to install using yum ?
Because when I tried this :
yum install gcc gmake make libcpp libgcc libstdc++ gcc4 \
gcc4-c++ gcc4-gfortran subversion ruby ncurses-devel -y
Subversion did not install , ...