Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   how to regenerate/create /etc/securetty file if deleted ??? (http://www.linux-archive.org/fedora-user/533104-how-regenerate-create-etc-securetty-file-if-deleted.html)

Jatin K 05-31-2011 02:59 PM

how to regenerate/create /etc/securetty file if deleted ???
 
Dear all

by mistake I've deleted a file securetty from /etc directory :-(


how do I regenerate that file again

I've tried rpm -ivh --force setup-2.*

but problem is not solved


any help is appreciated



Thanks

--
v
/(_)
^ ^ Jatin Khatri
Registerd Linux user No #501175
www.counter.li.org
No M$

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Ed Greshko 05-31-2011 09:55 PM

how to regenerate/create /etc/securetty file if deleted ???
 
On 05/31/2011 10:59 PM, Jatin K wrote:
> Dear all
>
> by mistake I've deleted a file securetty from /etc directory :-(
>
>
> how do I regenerate that file again
>
> I've tried rpm -ivh --force setup-2.*
>
> but problem is not solved
>
>
> any help is appreciated
>

One way to do this is to use rpm2cpio and pipe the output to cpio to
extract /etc/securetty and replace it.

FWIW, unless you altered it, it is simply a text file with the following
contents.

console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


All times are GMT. The time now is 12:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.