FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-09-2009, 02:16 PM
Peter Jones
 
Default Make sure /var/log/lastlog is there so we don't have ugly logs.

Right now when you ssh in, you get errors in the log because sshd wants
to interact with /var/log/lastlog. These errors will just confuse
people, so create /var/log/lastlog when we start sshd.
---
anaconda | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/anaconda b/anaconda
index 21b4d4b..2f0ca53 100755
--- a/anaconda
+++ b/anaconda
@@ -430,6 +430,8 @@ def startSsh():

childpid = os.fork()
if not childpid:
+ os.mkdir("/var/log", 0755)
+ os.open("/var/log/lastlog", os.O_RDWR | os.O_CREAT, 0644)
ssh_keys = {
'rsa1':'ssh_host_key',
'rsa':'ssh_host_rsa_key',
--
1.6.5.rc2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-09-2009, 02:23 PM
Hans de Goede
 
Default Make sure /var/log/lastlog is there so we don't have ugly logs.

Ack.

On 11/09/2009 04:16 PM, Peter Jones wrote:

Right now when you ssh in, you get errors in the log because sshd wants
to interact with /var/log/lastlog. These errors will just confuse
people, so create /var/log/lastlog when we start sshd.
---
anaconda | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/anaconda b/anaconda
index 21b4d4b..2f0ca53 100755
--- a/anaconda
+++ b/anaconda
@@ -430,6 +430,8 @@ def startSsh():

childpid = os.fork()
if not childpid:
+ os.mkdir("/var/log", 0755)
+ os.open("/var/log/lastlog", os.O_RDWR | os.O_CREAT, 0644)
ssh_keys = {
'rsa1':'ssh_host_key',
'rsa':'ssh_host_rsa_key',


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org