How Can I Save My /etc/passwd File

Nov 3, 2007

how can i save /etc/passwd there is many linux order which show my users on server
such as :

cat /etc/passwd
cat /var/cpanel/acounting.log
ls -la /etc/valiases
ls /var/named

and how can i disable the geting orders
such as :

curl -o

View 8 Replies


Unable Read /etc/passwd. /etc/passwd MUST Be World Readable Under UN*X Operating Sys

Feb 14, 2008

i run one bad command :-(

chmod -R 644 /

and this command changes all permision in root server
have any away for fixed all permision in centos?

because all site take error

i use of cpanel

View 14 Replies View Related

Save Grep To Txt File

Jan 28, 2008

I grepped an IP address on a domain log and it showed thousands of lines. How do I save this grep result to a txt file so I can send it to someone?

View 4 Replies View Related

Simpleish PHP/flat Files - Create File, Edit, Save

Nov 24, 2007

Display some text in a web browser from a file called text.txt

text.txt will have many lines and some of them I do not want users to be able to modify and overwrite.

config_item_1=user can edit
config_item_2=user should see but not edit (could be on any line)
config_item_3=user can edit
config_item_4=user can edit

The user has made their changes in the web browser and clicks submit. I then need this info to be saved as the text.txt file however some checking needs to be done first. Anything matching config_item_2 should be removed. This could be on any line. Anything not matching should be permitted and added.

View 1 Replies View Related

Simple Perl Progam To Save Server Load Every 30 Minutes To A File

Sep 2, 2007

i use the following perl script(created by me) to save server load every 30 minutes to a log file i just keep it running in the background(probably would be more effective using cron)


while(1) {
$w = `w`;
#print $w;
$w =~ /load average: (.+)
$log = $1;
my ($sec, $min, $hour, $mday, $mon, $year) = localtime;
my $rightnow = sprintf("%04d-%02d-%02d %02d:%02d:%02d ", $year + 1900, $mon + 1, $mday, $hour, $min, $sec);
$log = $rightnow . ": " . $log ."
open (OUTFILE, ">>top_logfile.txt");
print OUTFILE "$log
close (OUTFILE);
#sleep for 30 minutes

View 11 Replies View Related

Plesk 12.x / Linux :: Downloading Backups To Local Computer - Save File In TAR Format?

Jul 27, 2014

If I try to download a plesk backup to my local machine it saves a file a few bytes in size in .xml.tar.html format

My other non plesk 12 machines correctly save the file in .tar format ....

View 11 Replies View Related

Permission Denied: /home/airtrade/etc/ Passwd

Jul 20, 2008

Permission denied: /home/airtrade/etc/ passwd this is the error message obtained upon trying to create email accounts in cpanel.

the present permissions of the passwd file is 644 and ownership is username nobody i tried changing it to username.mail but still the same error

View 1 Replies View Related


Mar 4, 2007

ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
dbus:x:81:81ystem message bus:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
netdump:x:34:34:Network Crash Dump user:/var/crash:/bin/bash
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
sshd:x:74:74rivilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpc:x:32:32ortmapper RPC user:/:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
htt:x:100:101:IIIMF Htt:/usr/lib/im:/sbin/nologin
canna:x:39:39:Canna Service User:/var/lib/canna:/sbin/nologin
wnn:x:49:49:Wnn Input Server:/var/lib/wnn:/sbin/nologin
mysql:x:101:102:MySQL server:/var/lib/mysql:/bin/bash
clamav:x:32015:32017:Clam AntiVirus:/home/clamav:/bin/false

I heard it may pose a security risk for those unneeded users. Which lines can I remove?

View 1 Replies View Related

Passwd For SSH

Oct 21, 2007

i been wonder today when i try to login my account @box by SSH 21

the password is changed i think!

and when i see the logs files there is no stranger ip!

and there is no email about changeing password for my mail!

i tried to log in by another account in my server and trying to su root permission by my password

but passwd incorect!

and i change the Mysql root passwd and same thing

my support they sleep before 3 days so i should to figure my problem alone...

how to reset my root ssh passwd?

am useing Plesk VPS ...

View 8 Replies View Related

Passwd- And Shadow- Files

Apr 5, 2009

I have been googling this for a while but am not getting anywhere. Curiosity has gotten the best of me, what are the passwd- and shadow- files used for? The date and time stamps for both the passwd- and passwd files are exactly the same, as are the shadow- and shadow files.

Are they automatically-created backups of the passwd and shadow files?

View 2 Replies View Related

User Can See /etc/passwd. How To Stop This

Sep 1, 2007

We have CentOS and WHM 11 on the server. Also we have PHP 4.4.4 and open base dir enabled on the server . We have a shared server with many website configured on it.

Now The user uses the following PHP code and can see the /etc/passwd file
echo ini_get("safe_mode");
echo ini_get("open_basedir");
echo ini_get("safe_mode");
echo ini_get("open_basedir");

Now how to stop this. This is a security hole. how to stop this.

View 11 Replies View Related

Enabled Suphp But Still Can Read /etc/passwd

Nov 8, 2008

It there any good way to stop using from reading /etc/passwd?

I have suPHP enabled and open_basedir enabled by WHM too. But it seems susphp ignores open_basedir restrictions?

Here is virtual host config:

<VirtualHost x.x.x.x:80>
<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/xxx/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/p$
php5_admin_value open_basedir "/home/xxx/:/usr/lib/php:/usr/local/lib/php:/tmp"
<IfModule !concurrent_php.c>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/xxx/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/li$
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/xxx/:/usr/lib/php:/usr/local/lib/php:/tmp"
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/home/xxx/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/li$
DocumentRoot /home/xxx/public_html
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/ combined
CustomLog /usr/local/apache/domlogs/ "%{%s}t %I .
%{%s}t %O ."
## User xxx # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup xxx xxx
<IfModule !mod_disable_suexec.c>
SuexecUserGroup xxx xxx
ScriptAlias /cgi-bin/ /home/xxx/public_html/cgi-bin/
DocumentRoot /home/xxx/public_html
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/ combined
CustomLog /usr/local/apache/domlogs/ "%{%s}t %I .
%{%s}t %O ."
## User xxx # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup xxx xxx
<IfModule !mod_disable_suexec.c>
SuexecUserGroup xxx xxx
ScriptAlias /cgi-bin/ /home/xxx/public_html/cgi-bin/
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2/xxx/*.conf"


Scripts are running with user's UID, and that is fine, but it can still read /etc/passwd file for example.

How to fix that? Is it really open_basedir value is ignored by susphp? It works fine if I remove suphp and run scripts with nobody uid.

View 10 Replies View Related

Passwd: Authentication Token Manipulation Error

Mar 8, 2009

I set up a new account for a client using my reseller. He went to change the password and he is getting this error

There was an error manipulating the password file. This generally means you entered your old password incorrectly.

Changing password for user xxxxx.

Changing password for xxxxx

(current) UNIX password:

passwd: Authentication token manipulation error

The thing is, he is putting the password in correct. I made sure of that

I am able to change it in whm and i am able to log in to the account, i just cant change the password from cpanel

View 3 Replies View Related

Resetting A Root Password After /etc/passwd / Strangeness

Dec 27, 2007

We've had a customer do something strange to their server. They were playing with /etc/passwd or /etc/shadow or similar (not quite sure of the details) but the upshot is booting the server into single user and trying to reset the password via passwd gives

passwd root (and any user)
passwd: Authentication token manipulation error

So far I've

Replaced /etc/passwd* and /etc/shadow* with a copy from another server
Turned off SeLinux
/etc/pam.d/passwd is fine
Root file system is r/w

View 1 Replies View Related

Unable To Save Changes In My.cnf

Jun 13, 2007

As root I can't save any changes inside my.cnf. Allways getting this error:

Could not open file for writing: Permission denied

I checked file permissions twice - everything seems to be normal.

View 5 Replies View Related

Zip And Save SQL Backup Datewise

May 7, 2009

In my dedicated server I have MS SQL 2005 Server whose backup is scheduled at night 2:00 am through Management Console. Now, once the backup is over I wish compress it and give the current date as the name to the compressed file.

I had tried to do it using PK Zip server but was not successful in doing so. Can any body help me in accomplishing this.

View 10 Replies View Related

Save My Site From Hackers

Jan 18, 2008

My site is going down lot of times due to high cpu quota and when i check cpu exceeded logs i could see some ip addresses trying to open non existenet permalinks i.e. my site is and they try to open which gives a 404 error which is causinf high cpu usage. Repetedly they are trying to open differnt urls by appending /xxx to them, i banned nearly 100 ips but they seem to be growing.

View 10 Replies View Related

Save Your Time Go With WiredTree ** +review

Feb 6, 2009

I switched from Resellerzoom to wiredtree with a vps. I also have accounts with liquidweb and softlayer. All are reliable and uptimenot an issue but as far as getting help Wiredtree is just far above.

I have been there now only a few months but so far so good. If your not a real tech person wiredtree is your best bet. ANd the email response time wow!! I tried to call them once but by time I picked up the phone and waiting on hold for about 2 minutes my email was already responded to.

I am sure there are thousands of good host out there but I know on this boards when i looked no one would tell me whichto go with , they all said it depends on this and that. What I am saying is if your looking for a good VPS and your not a technical person go with Wiredtree save yourself the headache I had with others that are great host but just not ready to deal with us stupid people who dont know how to "harden" a server .

View 3 Replies View Related

How Can Save My Server From Shells Perl

Nov 4, 2007

for save my server from perl shells , many hakers can haked by cgi-telnet & r57 shell with perl how can save perl without stop it because if i stop it cpanels was disabled any one have any way to save my server from shell perl?

View 11 Replies View Related

How Save All History And All Command Running In Putty

Jul 18, 2008

i use for login to ssh by putty

and i run very command and result

how may i saved all this command and result in putty?

View 5 Replies View Related

Plesk 11.x / Linux :: Save Web Hosting Settings Takes Long Time

Mar 31, 2014

Panel-Version11.5.30 Update #38
BSDebian 7.4

Save Web Hosting Settings takes a long time. The Domains (Apache Server) are not reachable for 36 seconds.

View 12 Replies View Related

Plesk 12.x / Linux :: Save Access Logs Of Websites On External Server

Oct 24, 2014

I want to save the access logs of our websites on an external server. If I do this now with the default setup, the gets overwritten every day. The desired file name format whould be: websitedomain-tld-access-2014-10-24.log

How can I tell Plesk to do this and how can I make sure the statistics keep working?

On our other servers we use rotatelogs for this.

View 3 Replies View Related

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

Feb 10, 2015

I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...

View 2 Replies View Related, Where File.php Is Hosted On

May 26, 2008

Say I have 2 websites and they all use file.php which is located on

I want to use the file like this:

View 2 Replies View Related

Disabling "named" To Save Ram, Bad Idea

Mar 24, 2007

I've got a 256mb cpanel vps and since I use enom's dns for all the domains going to the server, could I actually disable named (Berkely Name Server Daemon BIND) and get back 64mb ?

View 5 Replies View Related

Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0

Mar 6, 2008

Rapidly growing error logs showing the same message

$ug-non-zts-20020429/' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ cannot open shared object file: No such file or directory in Unknown on line 0

root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../*
root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../*

Using cpanel 11 / centos 4

View 1 Replies View Related

Disabling Fopen("/etc/passwd","r");

Jul 18, 2007

I were seeing c99.php source code to know how it gets /etc/passwd file. it simply uses fopen() for this goal but I think fopen() is needed and I don't like it to be disabled in disabled_functions. I wonder how can I disable just fopen("/etc/passwd","r"); without doing any restriction to fopen function at all

View 8 Replies View Related

Copyrights 2005-15, All rights reserved