LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2003, 01:08 AM   #1
slacking_karl
LQ Newbie
 
Registered: Jul 2003
Location: Ohio
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
su permission as user


I'm using slackware 9.0 right now, and i was wonder is there a way to login as root while a user, like in the terminal, so i can "make install" w/o loging out?. I could do this w/ mandrake and red hat.
When in a terminal, and i type login, i get the following message:
No utmp entry. You must exec "login" from the lowest level "sh"
Lil' help anyone?
 
Old 08-04-2003, 01:17 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
I am a bit confused here.... Have you tried the su command?
 
Old 08-04-2003, 01:40 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well ... this sounds a bit odd. utmp should
keep trace of poeple logged in, but I've
never seen a message like that in slack.

What the user name, how do you log in?

ed.: Since this one is quite a stunner I
googled a bit and found a few possible
causes, one of them being insufficient
disk-space in the partition where your
utmp lives ... :)

Cheers,
Tink

Last edited by Tinkster; 08-04-2003 at 01:45 AM.
 
Old 08-04-2003, 03:30 AM   #4
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 18
The message about utmp just means that the login program is not meant to be used from the shell. It is called by (a|m)getty.

To become another user or root, use the su command.
 
Old 08-04-2003, 03:41 PM   #5
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Quote:
Originally posted by DIYLinux
The message about utmp just means that the login program is not meant to be used from the shell. It is called by (a|m)getty.

To become another user or root, use the su command.
No actually it means that the user issued the login command from a shell which was not a login shell and that there was also no corresponding entry in utmp.

This will arise if invoking eg an xterm without the -ls flag (denoting a login shell) and not having a utmp entry results from using the -ut on xterm.

Different command line switches or lack of them, and compilation time options, will also cause similar behavior with other X terminal emulators (rxvt, aterm, Eterm, konsole, gnome-terminal etc).
 
Old 08-04-2003, 10:11 PM   #6
slacking_karl
LQ Newbie
 
Registered: Jul 2003
Location: Ohio
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
i'm an idiot, the su command works.
cheers and thanks all around
 
  


Reply


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
User Permission kwtan Linux - Newbie 2 11-22-2005 10:32 PM
user permission pb. ptawe Debian 2 07-25-2005 03:47 PM
user permission demmylls Linux - General 7 12-19-2003 05:53 AM
User permission cerberus Linux - General 1 05-19-2003 01:50 PM
user permission richie Linux - Newbie 1 05-02-2001 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:20 AM.

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
Open Source Consulting | Domain Registration