Re: running CygwinX with a limited user account

2006-08-23 Thread Angelo Graziosi


Igor Peshansky wrote:

 For each user, execute mount -u SOMEUSERSPECIFICDIR /tmp (as man
 mount would have told you).

Are we sure that this works with startxwin.bat ?

Some time ago I tried to mount /tmp in an user directory (I used also
%TEMP%, i.e. C:\Doc...\%USERNAME%\..\Temp) but it did not worked with
startxwin.bat: it tries to remove \cygwin\tmp\.X11-unix\X0 which,
apparently, does not know about the mount.

Instead the mount works fine if one uses startx or startxwin.sh! But in
these cases one should first start cygwin.bat and the possibility to
start the X server from a link on the desktop is more hard.


Cheers,

   angelo.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: running CygwinX with a limited user account

2006-08-23 Thread Igor Peshansky
On Wed, 23 Aug 2006, Angelo Graziosi wrote:

 Igor Peshansky wrote:

  For each user, execute mount -u SOMEUSERSPECIFICDIR /tmp (as man
  mount would have told you).

 Are we sure that this works with startxwin.bat ?

 Some time ago I tried to mount /tmp in an user directory (I used also
 %TEMP%, i.e. C:\Doc...\%USERNAME%\..\Temp) but it did not worked with
 startxwin.bat: it tries to remove \cygwin\tmp\.X11-unix\X0 which,
 apparently, does not know about the mount.

Right.  One could rewrite startxwin.bat to do that using cmd.exe extended
syntax, but then it'd stop working on Win9x.

Alternatively, use 'rm -f' instead of 'del', and it should understand the
mount just fine.

 Instead the mount works fine if one uses startx or startxwin.sh!

Yes, because you're running from a Cygwin shell.

 But in these cases one should first start cygwin.bat and the possibility
 to start the X server from a link on the desktop is more hard.

Just put 'c:\cygwin\bin\bash --login -c /usr/X11R6/bin/startxwin.sh' in
the desktop shortcut.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: running CygwinX with a limited user account

2006-08-22 Thread J Jude

I am getting the same error as Bart, and I have diagnosed the problem,
but I do not know how to completely fix it.

Problem #1:
XWin uses the same log file name in /tmp for all users.  Limited users
cannot overwrite or remove administrator log files, so startxwin.bat
fails.
Workaround #1:
Update startxwin.bat to use -logfile /tmp/xwin-%USERNAME%.log

Problem #2:
/tmp/.X11-unix is created with the sticky bit set.  Limited users
cannot overwrite X0.
Workaround #1:
As admin, remove sticky bit from /tmp/.X11-unix.  This is not a
completely acceptable solution, because the sticky bit is replaced
every time an admin logs into the machine.

Setting up Cygwin so that each user had their own /tmp dir sounds like
a better workaround for both problems, but I have not yet figured out
how to do that.

In the long run, the Cygwin/X11 distribution should work for limited
users out-of-the-box.

Thanks



On Tue, 20 Sep 2005, Bart Bacon wrote:


To the Gurus of CygwinX,
I've noticed that in order to run CygwinX on separate accounts on the
same machine, all users must have computer administrator privileges
under the Windows XP Professional operating system.  Is there any work
around to allow users with limited privileges (such as my daughter) to
access CygwinX? Cygwin does not seem to have this problem.  Thanks for a
great product and hopefully a response to this question.


It would help to know exactly what error messages you're getting from the
limited account, but it sounds like the problem of not being able to
overwrite either /tmp/.X11-unix or /tmp/XWin.log.  X creates a directory
in /tmp that is owned by the last user who ran X (and, of course, so is
the log file).  The next user may need to have administrative privileges
to overwrite the directory and log.

One possible solution is to have a different /tmp for your daughter's
account -- see man mount for user mounts.  Let us know if it helps.  If
not, please give a better description of your problem, with the steps to
reproduce it and the error messages you see.
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
 |\  _,,,---,,_ [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
|,4-  ) )-,_. ,\ (  `'-'Igor Pechtchanski, Ph.D.
   '---''(_/--'  `-'\_) fL  a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: running CygwinX with a limited user account

2006-08-22 Thread Igor Peshansky
Hi,

Please make sure your mailer respects the Reply-To: header -- I set it for
a reason.

On Tue, 22 Aug 2006, J Jude wrote:

 [snip]
 Setting up Cygwin so that each user had their own /tmp dir sounds like
 a better workaround for both problems, but I have not yet figured out
 how to do that.

For each user, execute mount -u SOMEUSERSPECIFICDIR /tmp (as man mount
would have told you).

 In the long run, the Cygwin/X11 distribution should work for limited
 users out-of-the-box.

I don't think Cygwin/X was ever designed to run by multiple users
simultaneously.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: running CygwinX with a limited user account

2006-08-22 Thread J Jude

JJ  In the long run, the Cygwin/X11 distribution should work for limited
JJ  users out-of-the-box.

IP I don't think Cygwin/X was ever designed to run by multiple users
IP simultaneously.

We're not talking about simultaneously.  In the simple case, we're
talking about a user logging in as administrator to do some system
task, then logging out and logging in to a limited user account for
other tasks.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: running CygwinX with a limited user account

2006-08-22 Thread Igor Peshansky
On Tue, 22 Aug 2006, J Jude wrote:

 JJ  In the long run, the Cygwin/X11 distribution should work for limited
 JJ  users out-of-the-box.

 IP I don't think Cygwin/X was ever designed to run by multiple users
 IP simultaneously.

 We're not talking about simultaneously.  In the simple case, we're
 talking about a user logging in as administrator to do some system
 task, then logging out and logging in to a limited user account for
 other tasks.

I understood that.  I was debating with myself whether to expand on what I
said or not -- guess I should have.  By simultaneously I meant from the
same installation (yes, I know, poor choice of words).

Actually, I believe the only thing that's messing it up is /tmp/XWin.log
(which is a Cygwin/X invention -- Linux creates a display-specific file in
/var/log instead).  The socket is actually already display-specific, and
the only thing wrong with it is that Cygwin/X chooses display :0 by
default, and that clashes with the socket (it's debatable whether it
should try to find the next available display number or not).
Theoretically, Cygwin/X should also clean up the socket after itself.
Neither a display-specific log file nor socket cleanup happen in Cygwin/X.

I suppose someone has to do it, and patches would be welcome upstream, but
we are currently missing a Cygwin/X maintainer, so it's unlikely that
anything will be done about this until we get one.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: running CygwinX with a limited user account

2006-08-22 Thread Igor Peshansky
On Wed, 23 Aug 2006, Igor Peshansky wrote:

 On Tue, 22 Aug 2006, J Jude wrote:

  JJ  In the long run, the Cygwin/X11 distribution should work for
  JJ  limited users out-of-the-box.
 
  IP I don't think Cygwin/X was ever designed to run by multiple users
  IP simultaneously.
 
  We're not talking about simultaneously.  In the simple case, we're
  talking about a user logging in as administrator to do some system
  task, then logging out and logging in to a limited user account for
  other tasks.

 I understood that.  I was debating with myself whether to expand on what I
 said or not -- guess I should have.  By simultaneously I meant from the
 same installation (yes, I know, poor choice of words).

 Actually, I believe the only thing that's messing it up is /tmp/XWin.log
 (which is a Cygwin/X invention -- Linux creates a display-specific file in
 /var/log instead).  The socket is actually already display-specific, and
 the only thing wrong with it is that Cygwin/X chooses display :0 by
 default, and that clashes with the socket (it's debatable whether it
   ^
  causes name

 should try to find the next available display number or not).
 Theoretically, Cygwin/X should also clean up the socket after itself.
 Neither a display-specific log file nor socket cleanup happen in Cygwin/X.

 I suppose someone has to do it, and patches would be welcome upstream, but
 we are currently missing a Cygwin/X maintainer, so it's unlikely that
 anything will be done about this until we get one.
   Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



running CygwinX with a limited user account

2005-09-20 Thread Bart Bacon

To the Gurus of CygwinX,
I've noticed that in order to run CygwinX on separate accounts on the same 
machine, all users must have computer administrator privileges under the 
Windows XP Professional operating system.  Is there any work around to 
allow users with limited privileges (such as my daughter) to access 
CygwinX?  Cygwin does not seem to have this problem.  Thanks for a great 
product and hopefully a response to this question.


Bart Bacon


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: running CygwinX with a limited user account

2005-09-20 Thread Soong, SylokeJ
I am running cygwin/X under XP/Pro power user
not administrator and I have no problems (with cygwin/X, i.e.).
However, I am connoisseur of all but guru of none.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bart Bacon
Sent: Tue, September 20, 2005 1:28 PM
To: cygwin-xfree@cygwin.com
Subject: running CygwinX with a limited user account


To the Gurus of CygwinX,
I've noticed that in order to run CygwinX on separate accounts on the same 
machine, all users must have computer administrator privileges under the 
Windows XP Professional operating system.  Is there any work around to 
allow users with limited privileges (such as my daughter) to access 
CygwinX?  Cygwin does not seem to have this problem.  Thanks for a great 
product and hopefully a response to this question.

Bart Bacon
\

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: running CygwinX with a limited user account

2005-09-20 Thread Igor Pechtchanski
On Tue, 20 Sep 2005, Bart Bacon wrote:

 To the Gurus of CygwinX,
 I've noticed that in order to run CygwinX on separate accounts on the
 same machine, all users must have computer administrator privileges
 under the Windows XP Professional operating system.  Is there any work
 around to allow users with limited privileges (such as my daughter) to
 access CygwinX? Cygwin does not seem to have this problem.  Thanks for a
 great product and hopefully a response to this question.

It would help to know exactly what error messages you're getting from the
limited account, but it sounds like the problem of not being able to
overwrite either /tmp/.X11-unix or /tmp/XWin.log.  X creates a directory
in /tmp that is owned by the last user who ran X (and, of course, so is
the log file).  The next user may need to have administrative privileges
to overwrite the directory and log.

One possible solution is to have a different /tmp for your daughter's
account -- see man mount for user mounts.  Let us know if it helps.  If
not, please give a better description of your problem, with the steps to
reproduce it and the error messages you see.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/