LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 12-15-2009, 08:57 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
/etc/issue.net


Hi all..

I wanted to know, weather the file /etc/issue.net is created every time system is booted ?

OR

It got created when OS is installed...
 
Old 12-15-2009, 09:06 AM   #2
AleLinuxBSD
Member
 
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 272

Rep: Reputation: 38
/etc/issue and /etc/issue.net files
They are normal text file created during the installation of the OS.
Obviously you can change the content if you like.
 
Old 12-15-2009, 09:18 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by AleLinuxBSD View Post
/etc/issue and /etc/issue.net files
They are normal text file created during the installation of the OS.
Obviously you can change the content if you like.
Dear AleLinuxBSD,

Thanks for the reply,

I have commented the contents of /etc/issues.net
Code:
#Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel %r (%t).
~
~
Also I dont have blank line after the commented line, when i try to login from remote machine
Code:
[vinay@localhost webhuddle]$ telnet 172.21.109.60
Trying 172.21.108.65...
Connected to 172.21.108.65.
Escape character is '^]'.

linux login: root
Password: 
You have new mail in /var/mail/root.
Last login: Tue Dec 15 04:13:08 from 172.17.70.143
linux:~ #
I am getting a blank line after Escape character is '^]'., I dont want this blank line to appear, Is there any way to remove this blank line....

Any help will be greatly appreciated.....

Thanks again...
 
Old 12-15-2009, 09:43 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Make sure there is no Carrier return at the beginning of
/etc/issue.net

Code:
cannabis:/home/repo# cat /etc/issue.net 
Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.

cannabis:/home/repo# cat /etc/issue.net 

Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.
cannabis:/home/repo#
BTW, you should use ssh instead of telnet

Last edited by repo; 12-15-2009 at 09:46 AM.
 
Old 12-15-2009, 09:54 AM   #5
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by repo View Post
Make sure there is no Carrier return at the beginning of
/etc/issue.net

Code:
cannabis:/home/repo# cat /etc/issue.net 
Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.

cannabis:/home/repo# cat /etc/issue.net 

Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.
cannabis:/home/repo#
BTW, you should use ssh instead of telnet
Thanks repo,

I have pasted Ocatal dump of the file
Code:
linux:~ # od -t c /etc/issue.net
0000000   W   e   l   c   o   m   e       t   o       S   U   S   E    
0000020   L   I   N   U   X       E   n   t   e   r   p   r   i   s   e
0000040       S   e   r   v   e   r       9       (   i   5   8   6   )
0000060       -       K   e   r   n   e   l       %   r       (   %   t
0000100   )   .              \n
0000106
Do you mean to say, I have to remove \n character which is at the end ?
can you suggest how to remove that...?

Can you please suggest me ?
 
Old 12-15-2009, 10:22 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
Do you mean to say, I have to remove \n character which is at the end ?
can you suggest how to remove that...?
The problem is the beginning of the file.
At least in debian, if I add a carrier return (blank line)
at the beginning of the file /etc/issue.net
I get the output you have => space after
Escape character is '^]'.

If I remove the blank line it is OK

Don't know if suse uses the same files though
 
Old 12-15-2009, 06:56 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


http://www.linuxquestions.org/questi...-login-775757/


In this case I closed the original because the dupe seems to be more active.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
net-snmp - Invalid Token issue fruitwerks Linux - Networking 0 11-22-2009 12:17 AM
Lost ability to net-surf with toast.net dsl under openSUSE 10.3 DeekBeek Linux - Networking 5 02-10-2008 01:26 PM
DSL (The 'net connection) status issue Dralnu Linux - Networking 0 05-10-2006 11:40 PM
DNS issue, need to get back into debian net installer part 2 draget Debian 3 01-22-2006 12:38 PM


All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration