Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    Default Run a "Screen" session as a specific user

    Hi,

    I'm trying to keep an app running in the background under a specific userid. When I run "screen app_name" as root it keeps it running in the background.

    I enabled Normal Shell for a user, but still can't seem to run Screen as them, is there a specific option that needs to be open? Or anyway as root that I can force the screen session under their user?

    Each time I try to run it on the user account with Normal Shell, I get this error:

    Must be connected to a terminal.

    I can run the application without screen, but that would mean I would have to leave the SSH connection open(which I want to avoid).

    Thanks!

  2. #2
    Member InterServed's Avatar
    Join Date
    Jul 2007
    Posts
    172
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Run a "Screen" session as a specific user

    You might "su" as that user and then run the screen.

    Code:
    su - username
    screen 
    start application -> example ./user_application
    ctrl+d (to detach from the screen)
    ctrl+d (to exit su )

Similar Threads & Tags
Similar threads

  1. "Warning: Unknown(): Failed to write session data (files)"
    By majoosh in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 10-18-2011, 06:18 AM
  2. Replies: 2
    Last Post: 04-14-2009, 05:00 PM
  3. WHM run of upcp showing blank "progress" screen
    By nyjimbo in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-09-2007, 10:35 AM
  4. "Select specific user" in backup configuration
    By Abu Mami in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 07-25-2004, 01:47 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube