Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: su -l< Next Oldest | Next Newest >
erekose Offline





Group: Members
Posts: 2
Joined: Oct. 2007
Posted: Nov. 10 2007,07:16 QUOTE

I logged to remote machine hosting DSL using putty, then issued "su -l <newuser>" and after supplying the correct password, I noticed that this will start a new windows manager on the remote machine.

It looks like the user profile was loaded to restart the X Manager on the remote machine ?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Nov. 10 2007,13:53 QUOTE

In runlevel 5 it's default behavior to start a new X session. Boot into runlevel 2 if you want text mode only

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
erekose Offline





Group: Members
Posts: 2
Joined: Oct. 2007
Posted: Nov. 10 2007,15:39 QUOTE

DSL has Debian blood in it.  Debian does not make any distinction between runlevels 2 to 5.

   * 0 - Halt
   * 1 - Single
   * 2 - Full multi-user with display manager (GUI)
   * 3 - Full multi-user with display manager (GUI)
   * 4 - Full multi-user with display manager (GUI)
   * 5 - Full multi-user with display manager (GUI)
   * 6 - Reboot

Anyway, it's just changing to another user using the su command and it should not be restarting the X session on the remote machine.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Nov. 10 2007,15:43 QUOTE

Quote
DSL has Debian blood in it.  Debian does not make any distinction between runlevels 2 to 5.
DSL is not Debian, though. Debian is a distant ancestor, and DSL does not behave as its great grandfather did.

runlevel 2 = text mode as root
runlevel 3 (recently added) = text mode as dsl

If you want to boot into a desktop but prevent a new one from a remote connection, you'll probably need to modify /home/dsl/.bash_profile to remove startx. This would mean having to type "startx" in order to get a desktop initially. A more complicated alternative would be to check if the login is local or remote, and start x accordingly. I couldn't say how to do that, though.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
3 replies since Nov. 10 2007,07:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: su -l

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code