Help with screen comand

stan stanb at panix.com
Fri Dec 6 14:21:02 UTC 2019


On Fri, Dec 06, 2019 at 08:05:31AM -0500, stan wrote:
> On Fri, Dec 06, 2019 at 05:32:23PM +1100, Karl Auer wrote:
> > On Thu, 2019-12-05 at 10:05 -0500, stan wrote:
> > > doc at ica-db:~$ screen -x stan/test
> > > chmod /dev/pts/5: Operation not permitted
> > > doc at ica-db:~$??
> > 
> > 
> > Did you remember to turn on multiuser and add the user?
> > 
> > From the screen you are trying to share, it's something like
> > 
> > Ctl-A : multiuser on
> > Ctl-A : acladd whoever
> > 
> > Once you've sorted it and if you will be doing it again with the same
> > users, you can put the command sequence into .screenrc and it will be
> > automagicated for you.
> > 
> > Also, for multi-user operation I think screen has to be setuid, so
> > 
> > sudo chmod u+s `which screen`
> > 
> > And probably also the PID file - in /var/run/screen?
> > 
> I beleive I have checked all those boxes, and I still get an errror  related to the
> ptty when the 2nd user tries to connect.
> 

Here is the root cause of the issue:

doc at ica-db:~$ ls -l /dev/pts/6
crw------- 1 stan tty 136, 6 Dec  6 14:20 /dev/pts/6

Question is how to make certain this is created with less restricitve
permissions/ownership ?
-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin




More information about the ubuntu-users mailing list