Re: [CentOS] vsftpd question

2009-11-14 Thread Victor Subervi
On Fri, Nov 13, 2009 at 3:36 PM, Karanbir Singh mail-li...@karan.orgwrote:

  I haven't been doing that for quite some time now, except when I'm
  thanking you all for help, in which case I believe it's easier for all
  concerned. Do you disagree?

 dont top post at all.


Now, forgive me, but that seems anal.  What's the rationale there?
V
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] vsftpd question

2009-11-14 Thread Victor Subervi
On Fri, Nov 13, 2009 at 4:11 PM, Andrei F frunza...@gmail.com wrote:

 Hi,

 Take a look at the chroot_list_enable option. It enables you to specify
 per-user config.

 http://vsftpd.beasts.org/vsftpd_conf.html


Thank you.
V
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] vsftpd question

2009-11-14 Thread Victor Subervi
On Fri, Nov 13, 2009 at 4:31 PM, Jim Perrin jper...@gmail.com wrote:

 On Fri, Nov 13, 2009 at 2:16 PM, Victor Subervi victorsube...@gmail.com
 wrote:
  Hi;
  I've learned how to add a user and change the root dir of vsftpd (which
 of
  course is undocumented). Now I need to learn how to make it so that a
 given
  user can only access his/her folder (within the root dir). Please advise.

 Please stop being rude to the members of this list.


I am not being rude in the least. Perhaps it is because email is so
difficult to communicate attitudes, as we all know, that you are viewing
things one way while I am saying them another. At any rate, please accept my
apologies, although I have not been rude and therefore truly have no need to
apologize.
V
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] On-Boot Scripts

2009-11-14 Thread Victor Subervi
On Fri, Nov 13, 2009 at 4:40 PM, Robert Heller hel...@deepsoft.com wrote:

 At Fri, 13 Nov 2009 15:15:16 -0500 CentOS mailing list centos@centos.org
 wrote:

 
 
 
  On Fri, Nov 13, 2009 at 2:47 PM, m.r...@5-cent.us wrote:
 
On 11/13/2009 07:21 PM, Larry Brigman wrote:
either write an init script to be added to /etc/rc.d/init.d or
add it to the end of /etc/rc.d/rc.local
   
It looks, to me, that Victor is at a stage where he does not know
 what
he is doing with the basic stuff - pointing him at good docs might be
worth more than spoon-feeding.
  
 
  I'm a bit rusty. It's been a couple of years since I've run my own
 server,
  and I don't know this OS. And as we all know, each OS is different. I'm
  trying to install scripts I wrote years ago to do my MySQL backups.

 You probably don't want to do your MySQL backups only at boot time.  I
 think what you really need is to look at crontab's documentation.
 Unless your MySQL backup scripts themselves behave like deamons and do
 their own cron-like behaviour.

 There are really only two main flavors of UNIX/Linux boot
 methods/schools.  The BSD school and the SYS V school.  *Most* Linux
 distros (including RedHat's) favor the SYS V school: little scripts in
 /etc/init.d (or /etc/rc.d/init.d, depending on the vintage), with
 symlinks in /etc/rcN.d/.  The BSD school has a set of scripts for each
 run level.  I *think* Slackware uses this method (just because Slackware
 likes to be different).

 
  As for pointing me to the docs, I looked through them but couldn't make
  heads or tails of them. Yes, I need to study them, but right now I just
 need
  to get some basic things working so that I can make a little money and
 put
  food on the table :)
 
  I've loaded my scripts to /etc/rc.d/init.d Now how do I schedule my cron
  jobs?

 Cron job scripts don't go in /etc/rc.d/init.d!.  You can (should!) put
 them someplace else.  It does not really matter where (but should be
 someplace sensable).  You schedule them using crontab -- there are TWO
 manpages you should read: man 1 crontab (using the command to list or
 edit a crontab file) AND man 5 crontab (format of the entries in the
 file).  Read *both* pages carefully.


Thank you.
V
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] vsftpd question

2009-11-14 Thread Victor Subervi
On Sat, Nov 14, 2009 at 7:01 AM, John R. Dennison j...@gerdesas.com wrote:

 On Sat, Nov 14, 2009 at 05:45:34AM -0500, Victor Subervi wrote:
 
  Now, forgive me, but that seems anal.  What's the rationale there?

While that may seem anal to you, it's one of the guidelines
of this and other CentOS mailing lists as specified at:

http://www.centos.org/modules/tinycontent/index.php?id=16

It's also common practice for almost every mailing list
that I am a member of outside of the CentOS related lists
also.


Ok. It's the law. Now, what is the __logic__ behind not top posting a
Thanks everyone! I got it! once everything is understood and it's the
__last_post__. Top-posting in such an instance is more convenient for
everyone. They don't have to scroll down. Just a thank you! and goodbye.
While I agree with the logic of not top posting for every other instance,
isn't that more logical in __this__ instance?
V
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] On-Boot Scripts

2009-11-14 Thread Victor Subervi
On Sat, Nov 14, 2009 at 8:46 AM, Scott Ehrlich srehrl...@gmail.com wrote:

 On Fri, Nov 13, 2009 at 7:51 PM, Tracy Phillips
 tracphil.cen...@gmail.com wrote:
  On Fri, Nov 13, 2009 at 11:25 AM, Karanbir Singh mail-li...@karan.org
 wrote:
  it to the end of /etc/rc.d/rc.local
 
  It looks, to me, that Victor is at a stage where he does not know what
  he is doing with the basic stuff - pointing him at good docs might be
  worth more than spoon-feeding.
 
  just my 2bits
 
  Sometimes, I even wonder why there is a list all. After all pretty
  much everything is documented.
 
  To socialize with I guess
 
  just my 2cents.
 
  TP
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 

 A great reason for a popular list like this is if a person doesn't
 know what they are looking for, or they do but their searches are not
 producing other options, the list can provide those other helpful
 resources.   I've done this, too.   I either ask about what I know and
 see what options people give that even searching wouldn't have
 normally revealed, or openly ask what I don't fully know about and
 that can also lead to good answers - even if google and other search
 engines provide answers.   Sometimes search engines just don't produce
 what someone is looking for - but people do, or can help.

 Finally, it can be helpful to have a human response from a list to
 validate the usefulness of something found - is it good/legit, or
 problematic (old, malicious, whatever).

 Just my experiences.   Human communication is still key (like this list).


Man, Scott, you've hit it on the head! Gotta be honest. My name isn't
Victor Subervi. I've changed names on these lists so many times just to
escape all the *#*%)+_ people throw at me, and I'll be changing names again
after this post. What you all gonna do about it? Grow up! Treat people as
you would like to be treated. Bye!
Victor whateverMyNameIsLOL
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Rebuilding MySQL

2009-11-13 Thread Victor Subervi
Thanks :)

On Fri, Nov 13, 2009 at 4:09 AM, John R Pierce pie...@hogranch.com wrote:

 Victor Subervi wrote:
  What do? Also, where is the data usually stored? The server co. backed
  that up, but I don't know which file it would be.


 With the CentOS version of mysql, its typically in /var/lib/mysql and
 the mysql config file is /etc/my.cnf


 after installing the mysql server with yum as ceejay explained, do...

# service mysqld start
# chkconfig mysqld on

 (the first command starts the server, the second command configures the
 system so the mysql server will automatically start when rebooted)


 if the server is properly running, then you'll see at least one process
 if you ...

 # ps uww -C mysqld
 USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
 mysql 3193  0.0  1.6 136920 16608 ?Sl   Sep29   0:20
 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql
 --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking
 --socket=/var/lib/mysql/mysql.sock


 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] vsftpd question

2009-11-13 Thread Victor Subervi
Hi;
I've learned how to add a user and change the root dir of vsftpd (which of
course is undocumented). Now I need to learn how to make it so that a given
user can only access his/her folder (within the root dir). Please advise.
TIA,
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] On-Boot Scripts

2009-11-13 Thread Victor Subervi
Hi;
Where do I add my on-bootup scripts?
TIA,
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] On-Boot Scripts

2009-11-13 Thread Victor Subervi
On Fri, Nov 13, 2009 at 2:47 PM, m.r...@5-cent.us wrote:

  On 11/13/2009 07:21 PM, Larry Brigman wrote:
  either write an init script to be added to /etc/rc.d/init.d or
  add it to the end of /etc/rc.d/rc.local
 
  It looks, to me, that Victor is at a stage where he does not know what
  he is doing with the basic stuff - pointing him at good docs might be
  worth more than spoon-feeding.


I'm a bit rusty. It's been a couple of years since I've run my own server,
and I don't know this OS. And as we all know, each OS is different. I'm
trying to install scripts I wrote years ago to do my MySQL backups.

As for pointing me to the docs, I looked through them but couldn't make
heads or tails of them. Yes, I need to study them, but right now I just need
to get some basic things working so that I can make a little money and put
food on the table :)

I've loaded my scripts to /etc/rc.d/init.d Now how do I schedule my cron
jobs?
TIA,
V
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] vsftpd question

2009-11-13 Thread Victor Subervi
On Fri, Nov 13, 2009 at 2:20 PM, Karanbir Singh mail-li...@karan.orgwrote:

 On 11/13/2009 07:16 PM, Victor Subervi wrote:
  Hi;
  I've learned how to add a user and change the root dir of vsftpd (which
  of course is undocumented). Now I need to learn how to make it so that a
  given user can only access his/her folder (within the root dir). Please

 not sure what docs you are looking at - but all these things are quite
 clearly documented in the vsftpd docs and config files. Start by looking
 there.


Well, you all pointed me to some documentation that was hardly worthy of the
name. In fact, I'd dare say that vsftp stands for Very SansDocs FTP. I
googled and discovered a script for creating and adding users to vsftpd, and
how to change the doc root--stuff that should be right up front in any
documentation for an ftp server worth the name--but was unsuccessful in
finding how to point certain users to certain folders within the doc root.


 It almost seems as if you are relying on this list to be your sysadmin
 and your sp0onfeeder.


I apologize. It's been several years since I ran a server and I just need to
get this server up and running. I'm unfamiliar with the OS, and each OS is
different. I'll study the docs after I get up on my feet. And yesterday was
an emergency because of my own stupidity. Everyone makes stupid mistakes,
even you guys, and everyone has emergencies, so I hope you'll be a little
understanding.


 eg. Start by indicating what docs you have looked and what is it that
 you didnt find.


Again, I googled this. man vsftpd has virtually nothing. Googling vsftpd
docs gives about as much. Also tried man vsftpd.conf which was much more
useful but still didn't provide the information I need, which it seems to me
is fundamental! Perhaps I've missed something, and if I have, I apologize in
advance.


 Also, be considerate and dont top post. if you dont know what that means
 - go look it up


I haven't been doing that for quite some time now, except when I'm thanking
you all for help, in which case I believe it's easier for all concerned. Do
you disagree?
TIA,
V
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] On-Boot Scripts

2009-11-13 Thread Victor Subervi
Perfect. Thanks!
V

On Fri, Nov 13, 2009 at 3:26 PM, Bowie Bailey bowie_bai...@buc.com wrote:

 Victor Subervi wrote:
  On Fri, Nov 13, 2009 at 2:47 PM, m.r...@5-cent.us
  mailto:m.r...@5-cent.us wrote:
 
   On 11/13/2009 07:21 PM, Larry Brigman wrote:
   either write an init script to be added to /etc/rc.d/init.d or
   add it to the end of /etc/rc.d/rc.local
  
   It looks, to me, that Victor is at a stage where he does not
  know what
   he is doing with the basic stuff - pointing him at good docs
  might be
   worth more than spoon-feeding.
 
 
  I'm a bit rusty. It's been a couple of years since I've run my own
  server, and I don't know this OS. And as we all know, each OS is
  different. I'm trying to install scripts I wrote years ago to do my
  MySQL backups.
 
  As for pointing me to the docs, I looked through them but couldn't
  make heads or tails of them. Yes, I need to study them, but right now
  I just need to get some basic things working so that I can make a
  little money and put food on the table :)
 
  I've loaded my scripts to /etc/rc.d/init.d Now how do I schedule my
  cron jobs?

 Drop them into /etc/cron.daily (or hourly, weekly, or monthly).  Or for
 a bit more control, try crontab -e as the user the scripts should run
 under.  man 5 crontab, for the crontab file syntax.

 --
 Bowie
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] EMERGENCY: Server Crash

2009-11-12 Thread Victor Subervi
Hi;
I went to install some s/w and it looked like there was a problem with
openssl. So I decided to uninstall it (yum remove) and reinstall it. When I
went to reinstall, I discovered I couldn't use yum. Then I discovered:

[r...@13gems qmail-1.03]# yum install openssl
-bash: /usr/bin/yum: No such file or directory
[r...@13gems qmail-1.03]# man yum
Floating point exception
[r...@13gems qmail-1.03]# cd /
[r...@13gems /]# mkdir yum
mkdir: error while loading shared libraries: libselinux.so.1: cannot open
shared object file: No such file or directory
[r...@13gems /]# wget
http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.7.tar.gz
-bash: /usr/bin/wget: No such file or directory
[r...@13gems /]# ls /usr/bin/
ls: error while loading shared libraries: libselinux.so.1: cannot open
shared object file: No such file or directory
[r...@13gems /]#
[r...@13gems /]# python
-bash: python: command not found
Please advise ASAP!
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] EMERGENCY: Server Crash

2009-11-12 Thread Victor Subervi
k. Thanks.
V

On Thu, Nov 12, 2009 at 12:49 PM, m.r...@5-cent.us wrote:

  Hi;
  I went to install some s/w and it looked like there was a problem with
  openssl. So I decided to uninstall it (yum remove) and reinstall it. When
  I went to reinstall, I discovered I couldn't use yum. Then I discovered:
 snip
 I believe yum uses ssl, and it is, of course, trying to get it all over
 the network.

 Time to walk in with a CD or DVD and do an rpm install from that, all of
 them.

mark

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Installing libssl-dev

2009-11-12 Thread Victor Subervi
Hi;
I can't yum install libssl-dev because apparently it doesn't exist. Please
advise.
TIA,
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing libssl-dev

2009-11-12 Thread Victor Subervi
Thanks.
V

On Thu, Nov 12, 2009 at 2:41 PM, Robert Heller hel...@deepsoft.com wrote:

 At Thu, 12 Nov 2009 14:22:56 -0500 CentOS mailing list centos@centos.org
 wrote:

 
 
 
  Hi;
  I can't yum install libssl-dev because apparently it doesn't exist.
 Please

 Did you try openssl-devel?

 sauron.deepsoft.com% yum info openssl-devel
 Setting up repositories
 Reading repository metadata in from local files
 Excluding Packages in global exclude list
 Finished
 Reducing CentOS-4 - Plus to included packages only
 Finished
 Installed Packages
 Name   : openssl-devel
 Arch   : i386
 Version: 0.9.7a
 Release: 43.17.el4_7.2
 Size   : 3.6 M
 Repo   : installed
 Summary: Files for development of applications which will use OpenSSL.

 Description:
  OpenSSL is a toolkit for supporting cryptography. The openssl-devel
 package contains static libraries and include files needed to develop
 applications which support various cryptographic algorithms and
 protocols.

 BTW: RedHat uses '-devel' for development packages.  I believe Debian (et
 al.) uses '-dev' for development packages.

  advise.
  TIA,
  Victor
 
  MIME-Version: 1.0
 
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 
 

 --
 Robert Heller -- 978-544-6933
 Deepwoods Software-- Download the Model Railroad System
 http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
 hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing libssl-dev

2009-11-12 Thread Victor Subervi
Thanks.
V

On Thu, Nov 12, 2009 at 3:29 PM, Tait Clarridge t...@clarridge.ca wrote:

 On Thu, 2009-11-12 at 14:49 -0500, Victor Subervi wrote:
  Thanks.
  V

 yum list '*ssl*'

 Gives you a list of packages with ssl in the name.. just go through them
 and yum info on ones that have dev or devel at the end to find what
 you are looking for.

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Rebuilding MySQL

2009-11-12 Thread Victor Subervi
Hi;
Since I decided to yum remove openssl, genius that I am (not!), I managed
to screw up the OS so badly the server co. had to rebuild it for me :-)
These good people backed everything up very well, so the damage was minimal.
Now I'm trying to rebuild MySQL. I did the yum install mysql no problem.
However...

[r...@13gems old]# /etc/init.d/mysqld start
-bash: /etc/init.d/mysqld: No such file or directory

What do? Also, where is the data usually stored? The server co. backed that
up, but I don't know which file it would be.
TIA,
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] mysqld not starting on reboot

2009-11-10 Thread Victor Subervi
Hi;
I installed mysql using yum, so I have an /etc/init.d/mysqld file. For some
reason, however, mysqld doesn't boot on reboot of the machine. Please
advise.
TIA,
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mysqld not starting on reboot

2009-11-10 Thread Victor Subervi
That helped :)
Thanks,
V

On Tue, Nov 10, 2009 at 10:08 AM, John Doe jd...@yahoo.com wrote:

 From: Victor Subervi victorsube...@gmail.com
 I installed mysql using yum, so I have an /etc/init.d/mysqld file. For
 some reason, however, mysqld doesn't boot on reboot of the machine. Please
 advise.

 Did you use chkconfig like several people advised you to in previous posts?

 JD



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] No Such File...

2009-11-07 Thread Victor Subervi
If it were the interpreter, then my test.py and test2.py that are
_word_for_word_ the _exact_same_code_ would not work, correct?

dos2unix?! Huh? Where's the dos?

recode? man recode gives nothing.
V

On Fri, Nov 6, 2009 at 5:41 PM, Alexander Dalloz
ad+li...@uni-x.orgad%2bli...@uni-x.org
 wrote:

 Victor Subervi schrieb:

  Ok. As I mentioned before, I copied the contents of these two files:
  index.py
  template.py // which is referenced by the former
  --into--
  test.py
  test2.py
  I pasted them in through the ssh client, changing only the import
 statement
  from template to test2. *That worked.* However, the material that I
 uploaded
  through ftp doesn't render, it throws the error. The permissions are the
  same as the tests. So is the ownership. What gives??
  V

 dos2unix ftp uploaded script file

 Or use recode.

 Alexander

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
I have a serious privileges problem that is making it impossible to serve
python pages on a CentOS server. I have tried to resolve this problem in my
last post, but now it appears that interest has petered out. I'm desperate
and hoping someone on this list can help.

[Fri Nov 06 11:50:40 2009] [error] [client 66.248.168.98] (2)No such file or
directory: exec of '/var/www/html/angrynates.com/global_solutions/index.py'
failed, referer: http://angrynates.com/global_solutions/
[Fri Nov 06 11:50:40 2009] [error] [client 66.248.168.98] Premature end of
script headers: index.py, referer: http://angrynates.com/global_solutions/

Now, the file does exist:

[r...@13gems global_solutions]# pwd
/var/www/html/angrynates.com/global_solutions
[r...@13gems global_solutions]# ls

-rwxr-xr-x 1 victor victor 275 Nov 6 07:05 index.py

and it serves just fine on another server, so there is no premature end of
script headers.


Here's where it gets really weird. If I copy the code for index.py and
template.py which the former calls, and create files test.py and test2.py
and paste the code from the former files in those new files changing only
the import statement from template to test2, the tests will resolve!!
Now, the ownership and mode are identical on all of them!!


[r...@13gems global_solutions]# ls -al | grep test.py
-rwxr-xr-x 1 root root 298 Nov 6 12:24 test.py
[r...@13gems global_solutions]# ls -al | grep test2.py
-rwxr-xr-x 1 root root 5716 Nov 6 12:25 test2.py
[r...@13gems global_solutions]# ls -al | grep index.py
-rwxr-xr-x 1 root root 316 Nov 6 07:05 index.py
[r...@13gems global_solutions]# ls -al | grep template.py
-rwxr-xr-x 1 root root 5806 Nov 6 07:06 template.py
-rwxr-xr-x 1 root root 6093 Nov 6 07:06 template.pyc

where test.py is identical to index.py (other than the necessary import) and
template is identical to test2.py


fixfiles relabel /var/www/html
# might just work
It didn't

touch /.autorelabel
# and then reboot will relabel all copied files to the correct contexts for
the location
I rebooted apache with no luck

or you could turn off SELinux and reboot
I did that and the following two solutions with no luck:
echo 0 /selinux/enforce

[r...@13gems ~]# cd /etc/
[r...@13gems etc]# mv selinux/ selinux.BAK
[r...@13gems etc]# mkdir selinux
[r...@13gems etc]# echo 0/selinux/enforce

...and the problem continues:
[r...@13gems etc]# tail /var/log/httpd/error_log
[Fri Nov 06 12:51:49 2009] [error] [client 66.248.168.98] Premature end of
script headers: index.py, referer: http://angrynates.com/global_solutions/
[Fri Nov 06 12:56:18 2009] [error] [client 66.248.168.98] (2)No such file or
directory: exec of '/var/www/html/angrynates.com/global_solutions/index.py'
failed, referer: http://angrynates.com/global_solutions/
[Fri Nov 06 12:56:18 2009] [error] [client 66.248.168.98] Premature end of
script headers: index.py, referer: http://angrynates.com/global_solutions/
[Fri Nov 06 12:56:20 2009] [error] [client 67.96.172.81] (2)No such file or
directory: exec of '/var/www/html/angrynates.com/global_solutions/index.py'
failed
[Fri Nov 06 12:56:20 2009] [error] [client 67.96.172.81] Premature end of
script headers: index.py
[Fri Nov 06 13:52:15 2009] [error] [client 66.249.67.153] File does not
exist: /var/www/html/angrynates.com/robots.txt
[Fri Nov 06 13:52:52 2009] [error] [client 208.84.198.58] (2)No such file or
directory: exec of '/var/www/html/angrynates.com/global_solutions/index.py'
failed, referer: http://angrynates.com/global_solutions/
[Fri Nov 06 13:52:52 2009] [error] [client 208.84.198.58] Premature end of
script headers: index.py, referer: http://angrynates.com/global_solutions/
[Fri Nov 06 13:52:52 2009] [error] [client 208.84.198.58] File does not
exist: /var/www/html/angrynates.com/favicon.ico
[Fri Nov 06 13:52:53 2009] [error] [client 208.84.198.58] File does not
exist: /var/www/html/angrynates.com/favicon.ico
[r...@13gems etc]#

Please help.
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
On Sat, Nov 7, 2009 at 9:23 AM, Neil Aggarwal n...@jammconsulting.comwrote:

 Victor:

  I have a serious privileges problem that is making it impossible
  to serve python pages on a CentOS server. I have tried to resolve
  this problem in my last post, but now it appears that interest
  has petered out. I'm desperate and hoping someone on this list can help.

 You need to move to a host that includes support or hire a consultant.


Nonsense. You can't solve it either, can you? You're as stumped as the rest
of us...but arrogant, too.
V


Neil

 --
 Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com
 CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU
 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW, Zero downtime

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
On Sat, Nov 7, 2009 at 10:05 AM, Drew drew@gmail.com wrote:

  Nonsense. You can't solve it either, can you? You're as stumped as the
 rest
  of us...but arrogant, too.
  V

 Victor,

 To be brutally honest, you haven't given the list the info we need to
 help you solve this problem. I've been following this thread and so
 far I'm seeing a puzzle with half the pieces missing.


Can you please ask questions that I can answer so that you can help me?


 That said the first line of your error messages typically indicates
 that the script can't find the python executable pointed at by the
 script on the #! line.


[r...@13gems html]# ls /usr/bin/|grep pyth*
python
python2
python2.4

 Someone asked for the code:

THIS IS index,py

#!/usr/bin/python

import string
import cgitb; cgitb.enable()
import cgi
import sys,os
sys.path.append(os.getcwd())
from template import template

ourFile = string.split(__file__, /)
page = ourFile[len(ourFile) - 1][:-3]

form = cgi.FieldStorage()
w = form.getfirst('w', '1024')

template(page, w)

THIS IS template.py

#!/usr/bin/python

import cgitb; cgitb.enable()
import cgi
import sys,os
sys.path.append(os.getcwd())

p = 'template'

def template(page, w):
  wn = int(w)/1024
  print Content-Type: text/html
  print
  print '''
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Frameset//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd;
head xmlns=http://www.w3.org/1999/xhtml;
style type='text/css'
.text {  font-family: Arial, Helvetica, sans-serif; font-size: 16px;
text-decoration: none; text-align: justify}
/style
titleGlobal Solutions Group/title
meta http-equiv=distribution content=Global /
meta http-equiv=robots content=index all, follow all /
meta name=author content=This web site developed by beno. You may reach
him at his web site [beno.vi], or by dialing 340-773-0687 and asking for
room 102. /
script language=JavaScript type=text/JavaScript
!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; ia.length;
i++)
if (a[i].indexOf(#)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;aia.length(x=a[i])x.oSrc;i++)
x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf(?))0parent.frames.length)
{
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])d.all) x=d.all[n]; for (i=0;!xid.forms.length;i++)
x=d.forms[i][n];
for(i=0;!xd.layersid.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x  d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//--
/script
/head
body
onload=MM_preloadImages('images/office-supplies-on.jpg','images/catalog-on.jpg','images/customer-template-on.jpg','images/forms-on.jpg','images/about-on.jpg','images/contact-on.jpg')
script language=JavaScript1.2 src=quickmenu/sample_data.js/script
script language=JavaScript1.2 src=quickmenu/dqm_script.js/script'''
  print table width='%s' bgcolor='#ff' cellpadding='0'
cellspacing='0'!-- % (str(wn*1008))
  print '--tr!--'
  print '--td!--'
  print '--img src=images/top.jpg width=%s height=%s alt= /!--'
% (str(wn*1008), str(wn*101))
  print '--/td!--'
  print '--/trtr!--'
  print '--td!--'
  print '--table align=left width=%s cellpadding=0
cellspacing=0!--' % (str(wn*1008))
  print '--tr!--'
  print --tdimg src='images/left.jpg' alt='' width='%s' height='%s'
//td!-- % (str(wn*219), str(wn*21))
  print '--tda href=index.py
onMouseOver=MM_swapImage(Home,,images/home-on.jpg,1)
onMouseOut=MM_swapImgRestore()img src=images/home-off.jpg name=Home
id=Home alt=Home width=%s height=%s border=0 //a/td!--' %
(str(wn*80), str(wn*21))
  print '--tda href=Office_Supplies.py
onMouseOver=MM_swapImage(office-supplies,,images/office-supplies-on.jpg,1)
onMouseOut=MM_swapImgRestore()img src=images/office-supplies-off.jpg
name=office-supplies id=office-supplies alt=office supplies width=%s
height=%s border=0 //a/td!--' % (str(wn*137), str(wn*21))
  print '--tda href=Catalog.py
onMouseOver=MM_swapImage(catalog,,images/catalog-on.jpg,1)
onMouseOut=MM_swapImgRestore()img src=images/catalog-off.jpg
name=catalog id=catalog alt=catalog width=%s height=%s border=0
//a/td!--' % (str(wn*86), str(wn*21))
  print '--tda href=Customer_Templates.py
onMouseOver=MM_swapImage(customer-template,,images/customer-template-on.jpg,1)
onMouseOut=MM_swapImgRestore()img src=images/customer-template-off.jpg
name=customer-template id=customer-template alt=customer template
width=%s height=%s border=0 //a/td!--' % (str(wn*145),
str(wn*21))
  print '--tda href=Forms.py
onMouseOver=MM_swapImage(forms,,images/forms-on.jpg,1)
onMouseOut=MM_swapImgRestore()img src=images/forms-off.jpg

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
Thank you. I just rebooted the machine. Unfortunately, that didn't help.
V

On Sat, Nov 7, 2009 at 11:00 AM, Les Mikesell lesmikes...@gmail.com wrote:

 Victor Subervi wrote:
 
 
  fixfiles relabel /var/www/html
  # might just work
  It didn't
 
  touch /.autorelabel
  # and then reboot will relabel all copied files to the correct contexts
  for the location
  I rebooted apache with no luck
 
  or you could turn off SELinux and reboot
  I did that and the following two solutions with no luck:
  echo 0 /selinux/enforce
 

 What do you mean by 'rebooted apache'?  You have to reboot the whole
 machine to
 change selinlux settings.

 --
   Les Mikesell
lesmikes...@gmail.com

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
selinux must be off because I moved the whole folder to a backup.
Regarding running index.py, how? I tried this:
python index.py
and it just printed the whole thing to screen. But I can't image how there
would be an indent error. (1) This exact file without edit displays fine on
another server. (2) I copied the whole thing and pasted it into test.py. I
can't explain the size difference.

[r...@13gems global_solutions]# diff index.py test.py
1,19c1,17
 #!/usr/bin/python

 import string
 import cgitb; cgitb.enable()
 import cgi
 import sys,os
 sys.path.append(os.getcwd())
 from template import template

 ourFile = string.split(__file__, /)
 page = ourFile[len(ourFile) - 1][:-3]

 form = cgi.FieldStorage()
 w = form.getfirst('w', '1024')

 print page

 template(page, w)

---
 #!/usr/bin/python

 import string
 import cgitb; cgitb.enable()
 import cgi
 import sys,os
 sys.path.append(os.getcwd())
 from test2 import template

 ourFile = string.split(__file__, /)
 page = ourFile[len(ourFile) - 1][:-3]

 form = cgi.FieldStorage()
 w = form.getfirst('w', '1024')

 template(page, w)



On Sat, Nov 7, 2009 at 11:42 AM, Benjamin Donnachie
benja...@py-soft.co.ukwrote:

 2009/11/7 mark m.r...@5-cent.us:
  What do you mean by 'rebooted apache'?  You have to reboot the whole
 machine to
  change selinlux settings.
  No, you don't. Either the echo, or the setenforce command will change it.

 Rebooting probably turned SELinux back on again.  Run the setenforce
 permissive command again and then try.

 Ben
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
Adding python debugging to apache revealed an import error. The strange
thing is that when I load the exact lines of code in the command line python
interpreter, it has no trouble importing the class in question.

With respect to the dos question, I've uploaded this exact code in its exact
format (*.py files) to another server where it serves just fine. I can't
find where to get dos2unix, but do I need it?
V

On Sat, Nov 7, 2009 at 1:23 PM, John R Pierce pie...@hogranch.com wrote:

 Kwan Lowe wrote:
  On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com
 wrote:
 
 
  How did you get it from machine to machine?  This could be a line-ending
 issue
  from a copy from windows or the wrong mode in ftp.
 
 
  That is my guess too.   This exact error will happen if the file is
  copied in Dos format to Linux.
 

 ah, yes, python, where whitespace is  a syntax element


 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
I moved /etc/selinux/config to /etc/selinux/config.BAK and created an empty
folder to replace it. Then I rebooted the server.

It's been a while, but now I remember what a dos file looks like in a unix
environment. No, these files look like unix files (without the carets and
crap).
TIA,
V

On Sat, Nov 7, 2009 at 1:42 PM, Benjamin Donnachie
benja...@py-soft.co.ukwrote:

 2009/11/7 Victor Subervi victorsube...@gmail.com:
  selinux must be off because I moved the whole folder to a backup.

 Did you edit /etc/selinux/config to disable it?

 Please, just try the things people are suggesting rather than
 dismissing them instantly - it'll be much easier in the long run.

 Ben
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MySQL installation problem

2009-11-05 Thread Victor Subervi
That's it! Thanks!
V

On Thu, Nov 5, 2009 at 1:43 PM, Alan Sparks aspa...@doublesparks.netwrote:

 Victor Subervi wrote:
  Well, the service people supposedly installed mysql-server, but here's
  this:
 
  [r...@13gems /]# yum clean all
  Loaded plugins: fastestmirror
  Cleaning up Everything
  Cleaning up list of fastest mirrors
  [r...@13gems /]# yum install vsftp
  Loaded plugins: fastestmirror
  Determining fastest mirrors
   * addons: mirror.stanford.edu http://mirror.stanford.edu
   * atomic: www4.atomicorp.com http://www4.atomicorp.com
   * base: mirrors.kernel.org http://mirrors.kernel.org
   * extras: mirrors.usc.edu http://mirrors.usc.edu
   * updates: mirrors.bluehost.com http://mirrors.bluehost.com
  addons
  |  951 B 00:00
  addons/primary
  |  203 B 00:00
  atomic
  |  951 B 00:00
  atomic/primary
  | 224 kB 00:00
  atomic
  670/670
  base
  | 2.1 kB 00:00
  base/primary_db
  | 2.0 MB 00:01
  extras
  |  951 B 00:00
  extras/primary
  | 118 kB 00:00
  extras
  290/290
  updates
  | 1.9 kB 00:00
  updates/primary_db
  | 274 kB 00:01
  Setting up Install Process
  No package vsftp available.
  Nothing to do
  [r...@13gems /]#
 
  TIA,
  V
 
  On Thu, Nov 5, 2009 at 1:18 PM, Alan Sparks aspa...@doublesparks.net
  mailto:aspa...@doublesparks.net wrote:
 
  Victor Subervi wrote:
   Man, this is getting frustrating. In addition to all the other yum
   install commands that tell me there's nothing to do, I add these:
   yum install mysql-server.i386
   yum install mysql-server
   What gives?
   TIA,
   V
  
 
  Is your Yum configuration broken?  Can you post the exact console
  output
  of running 'yum install mysql-server'?
  Maybe try a 'yum clean all' beforehand?
  -Alan
 
  ___
  CentOS mailing list
  CentOS@centos.org mailto:CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 
 
  
 
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 

 You have the package name wrong.  It should be vsftpd.

 $ sudo yum info '*vsftp*'
 Available Packages
 Name   : vsftpd
 Arch   : x86_64
 Version: 2.0.5
 Release: 16.el5
 Size   : 139 k
 Repo   : base
 Summary: vsftpd - Very Secure Ftp Daemon
 URL: http://vsftpd.beasts.org/
 License: GPL
 Description: vsftpd is a Very Secure FTP daemon. It was written
 completely from
   : scratch.

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] vsFTP Question

2009-11-05 Thread Victor Subervi
Hi;
Now that it's installed, how do I start it and add a user? I can hardly
believe there is *no* documentation!
TIA,
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] vsFTP Question

2009-11-05 Thread Victor Subervi
Well, man vsftpd:

VSFTPD(8) BSD System Managerâs Manual
VSFTPD(8)

NAME
 vsftpd - Very Secure FTP Daemon

SYNOPSIS
 vsftpd [configuration file]

DESCRIPTION
 vsftpd is the Very Secure File Transfer Protocol Daemon. The server can
be launched via a âsuper-serverâ

Alternatively, vsftpd can be launched in standalone mode, in which case
vsftpd itself will listen on the network. This latter mode is
 easier to use, and recommended. It is activated by setting listen=YES
in /etc/vsftpd/vsftpd.conf.  Direct execution of the vsftpd binary
 will then launch the FTP service ready for immediate client
connections.

OPTIONS
 An optional [configuration file] may be given on the command line. This
configuration file has to be owned by root. The default configu-
 ration file is /etc/vsftpd/vsftpd.conf.

SEE ALSO
 vsftpd.conf(5)

BSD  March 8, 2001
BSD
(

Great. What does that say? Where are my flags? How do I issue a command to
start the service?
man service:

NAME
   service - run a System V init script

SYNOPSIS
   service SCRIPT COMMAND [OPTIONS]

   service --status-all

   service --help | -h | --version

DESCRIPTION
   service  runs  a  System V init script in as predictable environment
as possible, removing most environment variables and with current
   working directory set to /.

   The SCRIPT parameter specifies a System V init script, located in
/etc/init.d/SCRIPT.  The supported values of COMMAND depend  on  the
   invoked  script,  service  passes COMMAND and OPTIONS it to the init
script unmodified.  All scripts should support at least the start
   and stop commands.  As a special case, if COMMAND is --full-restart,
the script is run twice, first with the stop command,  then  with
   the start command.

   service --status-all runs all init scripts, in alphabetical order,
with the status command.

FILES
   /etc/init.d
  The directory containing System V init scripts.

ENVIRONMENT
   LANG, TERM
  The only environment variables passed to the init scripts.

SEE ALSO
   chkconfig(8), ntsysv(8)

   Jan 2006
service(8)
(END)

And what exactly does that tell me? What is my command? What are my options?

Lots of stuff online? I went to several of the pages your googling revealed
before posting and there wasn't anything substantial on any of them. Can you
please be more specific?
TIA,
V

On Thu, Nov 5, 2009 at 3:51 PM, Rudi Ahlers rudiahl...@gmail.com wrote:

 On Thu, Nov 5, 2009 at 9:44 PM, Victor Subervi victorsube...@gmail.com
 wrote:
  Hi;
  Now that it's installed, how do I start it and add a user? I can hardly
  believe there is *no* documentation!
  TIA,
  Victor
 
  ___


 There is plenty documentation:

 http://www.google.co.za/search?hl=enei=lCzzSrq9FM_14AaPqOTQAwsa=Xoi=spellresnum=0ct=resultcd=1ved=0CAYQBSgAq=how+to+use+vsFTPDspell=1


 --
 Kind Regards
 Rudi Ahlers
 CEO, SoftDux Hosting
 Web: http://www.SoftDux.com
 Office: 087 805 9573
 Cell: 082 554 7532
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Change from Root

2009-10-27 Thread Victor Subervi
What I was interested in doing was to make it impossible for root to login
directly, but rather enable other users to login and then su to root. So I
edited /etc/ssh/sshd_config to read:
#PermitRootLogin no
(It was the dir I didn't know.) It initially said yes, but it was and is
commented. How is it that I then and still can login directly as root? Is
reboot necessary?
TIA,
V

On Mon, Oct 26, 2009 at 4:17 PM, Neil Aggarwal n...@jammconsulting.comwrote:

  I am not sure what a VPS is

 VPS stands for virtual private server.

Neil


 --
 Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com
 CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit
 CPU, 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: Re: Change from Root

2009-10-27 Thread Victor Subervi
Well, I'm baffled. Changing to this:
PermitRootLogin no
does nothing without reboot. With respect to the other, I have the following
documentation:

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# PermitRootLogin without-password. If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# ChallengeResponseAuthentication=no

I don't want PAM. Please advise.
V

On Tue, Oct 27, 2009 at 11:16 AM, frank.brodb...@klingel.de wrote:

 Les Mikesell lesmikes...@gmail.com  schrieb am 27.10.2009 16:04:56:

  Victor Subervi wrote:
   What I was interested in doing was to make it impossible for root to
   login directly, but rather enable other users to login and then su to
   root. So I edited /etc/ssh/sshd_config to read:
   #PermitRootLogin no
   (It was the dir I didn't know.) It initially said yes, but it was
 and
   is commented. How is it that I then and still can login directly as
   root? Is reboot necessary?
 
  It's not going to have any effect unless you remove the # sign.  You
  don't need to reboot, but do a 'service sshd restart'.

 Please, *don't* restart the service. If you fuck up your sshd_config
 and you have no OOB remote access you're lost. `service sshd reload' is
 something more recommendable as it doesn't drop your current SSH sessions.

 Just for the records:
 Another way would be to set PermitRootLogin to without-password and thus
 pinning it down to logins via ssh-keys only.

 Frank.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: Re: Change from Root

2009-10-27 Thread Victor Subervi
The RedHat docs worked. Thanks!
V

On Tue, Oct 27, 2009 at 11:28 AM, Victor Subervi victorsube...@gmail.comwrote:

 Well, I'm baffled. Changing to this:
 PermitRootLogin no
 does nothing without reboot. With respect to the other, I have the
 following documentation:

 # Set this to 'yes' to enable PAM authentication, account processing,
 # and session processing. If this is enabled, PAM authentication will
 # be allowed through the ChallengeResponseAuthentication mechanism.
 # Depending on your PAM configuration, this may bypass the setting of
 # PasswordAuthentication, PermitEmptyPasswords, and
 # PermitRootLogin without-password. If you just want the PAM account and
 # session checks to run without PAM authentication, then enable this but
 set
 # ChallengeResponseAuthentication=no

 I don't want PAM. Please advise.
 V

 On Tue, Oct 27, 2009 at 11:16 AM, frank.brodb...@klingel.de wrote:

 Les Mikesell lesmikes...@gmail.com  schrieb am 27.10.2009 16:04:56:

  Victor Subervi wrote:
   What I was interested in doing was to make it impossible for root to
   login directly, but rather enable other users to login and then su to
   root. So I edited /etc/ssh/sshd_config to read:
   #PermitRootLogin no
   (It was the dir I didn't know.) It initially said yes, but it was
 and
   is commented. How is it that I then and still can login directly as
   root? Is reboot necessary?
 
  It's not going to have any effect unless you remove the # sign.  You
  don't need to reboot, but do a 'service sshd restart'.

 Please, *don't* restart the service. If you fuck up your sshd_config
 and you have no OOB remote access you're lost. `service sshd reload' is
 something more recommendable as it doesn't drop your current SSH sessions.

 Just for the records:
 Another way would be to set PermitRootLogin to without-password and thus
 pinning it down to logins via ssh-keys only.

 Frank.

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Change from Root

2009-10-26 Thread Victor Subervi
Hi;
Can someone please remind me how to update my VPS so that I have to
authenticate first as user before I can su to root?
TIA,
Victor
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos