So, if i do this:
su -c 'screen -dmS screenname script to run' - user to run as
It won't work.
I 'am making an enterprise app, the user should be able to use only those applications which i provide him. My idea is overriding the default start screen with my custom layout with the app icons, of only those apps which i provide to the user. I will disable home, menu back and search buttons in the starting screen.
This is certainly not game-changing or life-altering, but a question about Ubuntu has been nagging at me.
Why is it that when a user locks the screen (or the screen is locked due to inactivity), the machine doesn't simply go straight to the login screen. The little dialogue that is shown has nothing to offer that the login screen doesn't have.
I would like to know if there is a way to get tmux to behave like screen -D -R so I could say, have the command as a default command in Putty.
These screen switches would force detach of an existing screen session for my user (even if it was still active and logged-in somewhere else) and reattach it to the current session.
Is it normal, that when I am logged in as root, and the used su user, I can't access that users screen sessions?
Screen complains about it not having permissions on /dev/pts/x
I assume that it can't control the terminal, that was opened as root, in a way it wants?
Is there any application available to monitor a user screen activity for Ubuntu 12.04? Preferably in hidden mode so logged in user may not be able to find out if the user screen is being monitored (assuming the user is an average user with minimal/zero commands knowledge).
I guess VNC is one way but I want to make sure that's the best option.
I am trying to set up home custom server and I am looking for a way of remotely managing it.
Googling pointed me to the 'screen' and when I try to autostart my server with /etc/rc.local file with line
Code:
sudo -u server screen -d -m nano
(Nano is for testing purposes only)
I don't see it later with:
I am using a command to start a screen session and run a bash script for a user.
/bin/su username -c "/usr/bin/screen -dmS test bash -c '/home/username/test.sh; exec bash'"
When I boot, I am seeing the screen session appear for that user, but when I open it, I see a permission denied error.
I checked permissions on the file and it is:
-rw-rw-r-- 1 username www-data 816 Feb 18 00:59 test.sh
I have a macbook air with intel graphics, yesterday I disabled the laptop screen while I used an external screen and today whenever I plug it in the laptop screen goes off and the external monitor does not come on.