Re: Using su on cygwin
Hi, I got my /etc/passwd and /etc/group from mkpasswd and mkgroup. When I'm loged as user, sometimes I need to get administrator privileges, for instance, to make and install a library or program. How do I do that? I tried: su administrator but it always says I'm using the wrong password (I use the same password I use to log as administrator). What am I doing wrong? You didn't read this: FAQ:http://cygwin.com/faq/ See Why doesn't `su' work?: http://cygwin.com/faq/faq_toc.html#TOC39 After reading that and further docs, I managed to get login (instead of su) to work, but only when I am logged in Windows as administrator. Do you know why I can't get that to work for other users? Maurício -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Using su on cygwin
Why not use the Microsoft runas command to start your program/shell? RUNAS [ [/noprofile | /profile] [/env] [/netonly] ] /user:UserName program Maurício [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 08/16/2004 03:26 PM To [EMAIL PROTECTED] cc Subject Re: Using su on cygwin Hi, I got my /etc/passwd and /etc/group from mkpasswd and mkgroup. When I'm loged as user, sometimes I need to get administrator privileges, for instance, to make and install a library or program. How do I do that? I tried: su administrator but it always says I'm using the wrong password (I use the same password I use to log as administrator). What am I doing wrong? You didn't read this: FAQ:http://cygwin.com/faq/ See Why doesn't `su' work?: http://cygwin.com/faq/faq_toc.html#TOC39 After reading that and further docs, I managed to get login (instead of su) to work, but only when I am logged in Windows as administrator. Do you know why I can't get that to work for other users? Maurício -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ForwardSourceID:NT0002D2A2 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Using su on cygwin
At 02:26 PM 8/16/2004, you wrote: Hi, I got my /etc/passwd and /etc/group from mkpasswd and mkgroup. When I'm loged as user, sometimes I need to get administrator privileges, for instance, to make and install a library or program. How do I do that? I tried: su administrator but it always says I'm using the wrong password (I use the same password I use to log as administrator). What am I doing wrong? You didn't read this: FAQ:http://cygwin.com/faq/ See Why doesn't `su' work?: http://cygwin.com/faq/faq_toc.html#TOC39 After reading that and further docs, I managed to get login (instead of su) to work, but only when I am logged in Windows as administrator. Do you know why I can't get that to work for other users? Did you read the 'login' README? It says: == Under NT/2K/XP, login(1) is _not_ supposed to work on the command line to change user context! Though you're able to tweak user permissions to get login(1) working that way, that's NOT officially supported. == Message http://www.cygwin.com/ml/cygwin/2003-06/msg00897.html, which the FAQ refers to. points to the real solution. Install 'openssh' and use 'ssh'. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Using su on cygwin
Hi, I got my /etc/passwd and /etc/group from mkpasswd and mkgroup. When I'm loged as user, sometimes I need to get administrator privileges, for instance, to make and install a library or program. How do I do that? I tried: su administrator but it always says I'm using the wrong password (I use the same password I use to log as administrator). What am I doing wrong? Thanks, Maurício -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Using su on cygwin
At 01:58 PM 8/11/2004, you wrote: Hi, I got my /etc/passwd and /etc/group from mkpasswd and mkgroup. When I'm loged as user, sometimes I need to get administrator privileges, for instance, to make and install a library or program. How do I do that? I tried: su administrator but it always says I'm using the wrong password (I use the same password I use to log as administrator). What am I doing wrong? You didn't read this: FAQ: http://cygwin.com/faq/ See Why doesn't `su' work?: http://cygwin.com/faq/faq_toc.html#TOC39 -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/