All Questions
24
questions
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 ...
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 ...
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 ...
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. $ ...
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
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
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
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 ...
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 ...
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 ...
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
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 ...
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
...