Current time: 11-27-2024, 08:40 AM Hello There, Guest! (LoginRegister)


Post Reply 
stupid me - please help
Author Message
laddu Offline
Junior Member
*

Posts: 42
Joined: Dec 2008
Reputation: 0
Post: #1
stupid me - please help
Hello,

I just deed a stupid think. By mistake I chmod 777 on /var/run

can someone provide a recursive ls on /var/run ? Or o solution ? Http is returning 503 error, proftpd not working

please help
02-11-2009 02:00 AM
Find all posts by this user Quote this message in a reply
RodNoc Offline
Junior Member
*

Posts: 64
Joined: Sep 2008
Reputation: 0
Post: #2
RE: stupid me - please help
as far as I can see, most files are 755... Did you try a restart? The pid-files will be regenerated afaik.
02-11-2009 02:09 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #3
RE: stupid me - please help
Et voilà debian lenny...

Code:
:~# ls -lR /var/run/
/var/run/:
insgesamt 140
srw-rw-rw- 1 root        root           0 30. Okt 21:27 acpid.socket
drwxr-xr-x 3 root        root        4096 10. Feb 06:25 apache2
-rw-r--r-- 1 root        root           6 10. Feb 06:25 apache2.pid
-rw-r--r-- 1 root        root           5 30. Okt 21:27 atd.pid
drwxr-xr-x 3 root        root        4096  6. Mär 2008  bind
drwxr-xr-x 3 daemon      daemon      4096 13. Mai 2008  courier
-rw-r--r-- 1 root        root           5 30. Okt 21:27 crond.pid
---------- 1 root        root           0 30. Okt 21:27 crond.reboot
drwxr-xr-x 3 root        root        4096 30. Okt 21:27 dovecot
drwxr-x--- 2 Debian-exim Debian-exim 4096  6. Mär 2008  exim4
drwxr-xr-x 2 identd      nogroup     4096 31. Okt 00:11 identd
-rw-r--r-- 1 root        root           5 30. Okt 21:27 inetd.pid
-rw-rw-rw- 1 root        root           4 30. Okt 21:27 ispcp_daemon.pid
-rw-r--r-- 1 root        root           0 30. Okt 21:27 ispcp_network
-rw-r--r-- 1 root        root           5 30. Okt 21:27 klogd.pid
drwxr-xr-x 2 root        root        4096 26. Sep 07:32 mdadm
-rw-r--r-- 1 root        root         352 30. Okt 21:27 motd
drwxr-xr-x 2 mysql       root        4096 30. Okt 21:27 mysqld
drwxr-xr-x 2 root        root        4096  8. Dez 16:42 network
drwxr-xr-x 2 root        root        4096 20. Jan 2008  openntpd
drwx------ 3 polw        root        4096 30. Okt 21:27 policyd-weight
-rw-r--r-- 1 root        root           4 30. Okt 21:27 policyd-weight.pid
-rw------- 1 root        root          91 30. Okt 21:27 portmap_mapping
-rw-r--r-- 1 postgrey    postgrey       5 30. Okt 21:27 postgrey.pid
drwxr-xr-x 2 root        root        4096  9. Feb 10:44 proftpd
-rw-r--r-- 1 root        root           6  1. Feb 06:52 proftpd.pid
-rw-r--r-- 1 statd       root           5 30. Okt 21:27 rpc.statd.pid
drwx--x--- 2 root        sasl        4096  6. Mär 2008  saslauthd
drwxrwxr-x 2 root        utmp        4096  1. Jun 2008  screen
-rw------- 1 root        root           5 30. Okt 21:27 sm-notify.pid
drwxr-xr-x 2 root        root        4096 11. Jan 2008  sshd
-rw-r--r-- 1 root        root           6  8. Dez 16:42 sshd.pid
drwx------ 2 root        ndadmin     4096  1. Jan 1985  sudo
-rw-r--r-- 1 root        root           5 30. Okt 21:27 syslogd.pid
-rw-rw-r-- 1 root        utmp        4992 10. Feb 17:08 utmp

/var/run/apache2:
insgesamt 4
drwx------ 3 www-data www-data 4096 10. Feb 06:25 fastcgi

/var/run/apache2/fastcgi:
insgesamt 4
drwx------ 2 www-data www-data 4096 10. Feb 16:15 dynamic

/var/run/apache2/fastcgi/dynamic:
insgesamt 0


/var/run/bind:
insgesamt 4
drwxrwxr-x 2 root bind 4096  8. Feb 23:42 run

/var/run/bind/run:
insgesamt 4
-rw-r--r-- 1 bind bind 6  8. Feb 23:42 named.pid

/var/run/courier:
insgesamt 4
drwxr-x--- 2 daemon daemon 4096 10. Feb 16:16 authdaemon

/var/run/courier/authdaemon:
insgesamt 4
-rw-rw-rw- 1 root root 6 10. Feb 16:16 pid
-rw------- 1 root root 0 30. Okt 21:27 pid.lock

/var/run/dovecot:
insgesamt 8
srw-rw---- 1 vmail mail       0 30. Okt 21:27 auth-master
srw------- 1 vmail mail       0 30. Okt 21:27 auth-worker.7705
srwxrwxrwx 1 root  root       0 30. Okt 21:27 dict-server
drwxr-x--- 2 root  dovecot 4096  6. Feb 09:28 login
-rw------- 1 root  root       5 30. Okt 21:27 master.pid

/var/run/dovecot/login:
insgesamt 4
srw-rw---- 1 root dovecot   0 30. Okt 21:27 default
-rw-r--r-- 2 root root    230  6. Feb 09:28 ssl-parameters.dat

/var/run/exim4:
insgesamt 0

/var/run/identd:
insgesamt 4
-rw-r--r-- 1 identd nogroup 6 10. Feb 16:11 identd.pid

/var/run/mdadm:
insgesamt 0

/var/run/mysqld:
insgesamt 4
-rw-rw---- 1 mysql mysql 5 30. Okt 21:27 mysqld.pid
srwxrwxrwx 1 mysql mysql 0 30. Okt 21:27 mysqld.sock

/var/run/network:
insgesamt 0

/var/run/openntpd:
insgesamt 0

/var/run/policyd-weight:
insgesamt 4
drwxr-xr-x 4 polw polw 4096 26. Mai 2008  cores
srwxrwx--- 1 polw polw    0 30. Okt 21:27 polw.sock

/var/run/policyd-weight/cores:
insgesamt 8
drwxr-xr-x 2 polw polw 4096 26. Mai 2008  cache
drwxr-xr-x 2 polw polw 4096 26. Mai 2008  master

/var/run/policyd-weight/cores/cache:
insgesamt 0

/var/run/policyd-weight/cores/master:
insgesamt 0

/var/run/proftpd:
insgesamt 20
-rw-r--r-- 1 root root 2232 10. Feb 13:34 proftpd.delay
-rw-r--r-- 1 root root 1576  9. Feb 10:44 proftpd.scoreboard
srwxrwxrwx 1 root root    0  1. Feb 06:52 proftpd.sock
-rw------- 1 root root    0  9. Feb 10:44 tally.lock

/var/run/saslauthd:
insgesamt 0

/var/run/screen:
insgesamt 0

/var/run/sshd:
insgesamt 0

/var/run/sudo:
insgesamt 0

(02-11-2009 02:09 AM)RodNoc Wrote:  as far as I can see, most files are 755... Did you try a restart? The pid-files will be regenerated afaik.

Yeah thats right and with 777 there should be no problem with starting services... except the security issue of course...

you may want to delete all under files:
/var/run/apache2/fastcgi (there are sockets in there which can get confused when there rights are changed by an over-motivated admin ;-))
(This post was last modified: 02-11-2009 02:15 AM by rbtux.)
02-11-2009 02:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
laddu Offline
Junior Member
*

Posts: 42
Joined: Dec 2008
Reputation: 0
Post: #4
RE: stupid me - please help
tried a restart but without success. i am reviewing the recursive ls now
02-11-2009 03:19 AM
Find all posts by this user Quote this message in a reply
laddu Offline
Junior Member
*

Posts: 42
Joined: Dec 2008
Reputation: 0
Post: #5
RE: stupid me - please help
I reinstalled mysql and I dont receive any 503, but a blank page.

ispcp admin is returning: Connection failed: could not find driver

How can I fix this ?

Regards
actually this is what i am receiving now

Fatal error: Uncaught exception 'Exception' with message 'Database error: Not connected to default' in /var/www/ispcp/gui/include/class.database.php:21 Stack trace: #0 /var/www/ispcp/gui/include/i18n.php(66): Database::getInstance() #1 /var/www/ispcp/gui/include/system-message.php(49): tr('ispCP Error') #2 /var/www/ispcp/gui/include/ispcp-config.php(62): system_message('ERROR: The php-...') #3 /var/www/ispcp/gui/include/sql.php(26): decrypt_db_password('CMk7gyatYI5ZsvR...') #4 /var/www/ispcp/gui/include/ispcp-lib.php(54): require_once('/var/www/ispcp/...') #5 /var/www/ispcp/gui/index.php(21): require('/var/www/ispcp/...') #6 {main} thrown in /var/www/ispcp/gui/include/class.database.php on line 21
(This post was last modified: 02-11-2009 06:34 AM by laddu.)
02-11-2009 06:31 AM
Find all posts by this user Quote this message in a reply
RodNoc Offline
Junior Member
*

Posts: 64
Joined: Sep 2008
Reputation: 0
Post: #6
RE: stupid me - please help
Turn display_errors to On in php.ini.. then you can see, if the connection failed because user/pass is wrong or if there isn't any possibility to connect to the DB-server.

(I know, I only guess what it can bee, but I have no idea at the moment)
02-14-2009 06:37 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)