Cygwin 1.7 Does not work

2009-02-12 Thread Jaspreet Singh
Hi there,

today i tried to start using 1.7 , but there there where many problems
like

cygrunsrv -S init

gives lots of 

init: error reading initrequest
init: can't open /dev/console

We got bind9 but nobody told how to install it


and just tell me if init works so good in cygwin why not to have
just init and cygserver as windows services and rest like httpd
named, postgresql, proftpd etc in init scripts in which main process
of cygwin like init and cygserver starts with windows and then init
starts all procces with scripts in runlevel.

this will give a kind of Linux feelling tell me if i am wrong

This is just to starting

any help


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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: Cygwin 1.7 Status

2009-02-09 Thread Jaspreet Singh
  hi there,
  
  Ok, Now have installed cygwin 1.7 parrallel to 1.5, i
 just wanted to know
  that is 1.7 ready to be used insted of 1.5. I just
 want services like sshd
  bind DNS and others does work as they are suposed to
 work. I have compiled
  apache, mysql and php under 1.5 then copied them in
 1.7, seems fine to me
  httpd -M, mysql_config and php-config answers as they
 are suppose to do.
  I am using fstab and Bind DNS as a new features,
 everything else is in the
  same way.
  
  So how about that is it ready to be used insted of 1.5
 
 
 It's in quite a good shape but it's still a test
 release.  See
 http://cygwin.com/ml/cygwin-announce/2009-01/msg00036.html

  yes i see that according to that i think i can use 1.7
  
 
 
 Corinna


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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: SYSTEM Problem

2009-02-09 Thread Jaspreet Singh
  hi, i just created a new user 'test' in
 windows and in /etc/passwd, in
   windows 'test' is a member of 'Users'
 group. Now when i run /bin/bash
  as SYSTEM User it 'su' to any user in there
 with valid shell, but it is
  not doing 'su' to User 'test'.
  
  So, i tried 'Runas' running CMD as SYSTEM user
 of windows its still not
   login in to bash as User 'test'. It saying
 'Permission Denied'.
  
  I just wanted to know that as SYSTEM has rights to
 'su' to any user why
   its not 'su' to user that i just created. 
 
 If the process running as SYSTEM is started as or from a
 Windows service,
 the the user token of the process has not the create
 a token object
 right starting with Windows Server 2003.  This disallows
 switching
 the user context if no password for the new user is given.

  Yes you are right, so do you have any sugestion/ideas how to do
  that on Windows XP SP2/NTFS/CYGWIN1.7. Does cyglsa in any way
  can help

  SYSTEM is only able to su to that users
  that are within its primary group thats Administrators/544
  so, what i did was i made test user member of SYSTEM/18 group
  thats how SYSTEM was able to su to test user. but thats not a
  good idea to make a regular user part of SYSTEM group.

  code to run as SYSTEM is, if you want to try it and can get any
  solution to this. 

  cygrunsrv -I runassys -p C:/WINDOWS/system32/cmd.exe -a /C start
  CMD.EXE /K C:\cygwin1.7\bin\bash.exe --login -i -i --nohide

 
 
 Corinna


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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/



Cygwin 1.7 Status

2009-02-08 Thread Jaspreet Singh
hi there,

Ok, Now have installed cygwin 1.7 parrallel to 1.5, i just wanted to know
that is 1.7 ready to be used insted of 1.5. I just want services like sshd
bind DNS and others does work as they are suposed to work. I have compiled
apache, mysql and php under 1.5 then copied them in 1.7, seems fine to me
httpd -M, mysql_config and php-config answers as they are suppose to do.
I am using fstab and Bind DNS as a new features, everything else is in the
same way.

So how about that is it ready to be used insted of 1.5 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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/



How to get XFCE ?

2009-02-08 Thread Jaspreet Singh
Can anybody tell me how to get XFCE for cygwin 1.7, In details if someone 
can.


  Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/

--
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: How to get XFCE ?

2009-02-08 Thread Jaspreet Singh
* Jaspreet Singh (Sun, 8 Feb 2009 19:43:05 +0530 (IST))
 Can anybody tell me how to get XFCE for cygwin 1.7, In details if 
someone 
 can.

http://sourceware.org/cygwinports/

How this works for cygwin 1.7, setup.exe 1.7 cant access this


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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/



SYSTEM Problem

2009-02-07 Thread Jaspreet Singh
hi, i just created a new user 'test' in windows and in /etc/passwd, in
 windows 'test' is a member of 'Users' group. Now when i run /bin/bash
as SYSTEM User it 'su' to any user in there with valid shell, but it is
not doing 'su' to User 'test'.

So, i tried 'Runas' running CMD as SYSTEM user of windows its still not
 login in to bash as User 'test'. It saying 'Permission Denied'.

I just wanted to know that as SYSTEM has rights to 'su' to any user why
 its not 'su' to user that i just created. 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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: SYSTEM as root user

2009-02-07 Thread Jaspreet Singh

ok, Webmin got patched thats done, Now problem is that i just
creted a new user 'test' with the help of useradmin module that worked
fine too, user is added by my perl script that adds user to windows
account then with /mkpasswd adds it to /etc/passwd, means thats valid
but runing /bin/bash as SYSTEM get me to su root that is
Administrator and even su to my User that is jaspreet member of
Administrators group but it does not get me to su user 'test' that 
i just created. I think SYSTEM can su to any User. What about cyglsa
or that CYGWIN=server passwd -R, can any of this can help.

Any idea


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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: SYSTEM as root user

2009-02-04 Thread Jaspreet Singh
yes, you are right i thought of that too but i just gussing that reward to
be root user goes to SYSTEM rather than Administrator coz SYSTEM has
 capability to use 'su'. Just a guess but you are right its easy to patch 
webmin to recognize SYSTEM not root than going into all the way installing
Cygwin as SYSTEM and the making is root User. 

Thanks

(Some Other Problems for WCAMP Layout)
By the way Do you Know any really good IMAP/POP3 for cygwin with exim. UW 
does not works problem is that it only do cram-md5 login nothing else.
 and compiling php under cygwin with mysql support still searching for
mysql.socket, dont have that coz its mysql client for windows mysql
 server.


--- On Wed, 4/2/09, Corinna Vinschen corinna-cyg...@cygwin.com wrote:

 From: Corinna Vinschen corinna-cyg...@cygwin.com
 Subject: Re: SYSTEM as root user
 To: cygwin@cygwin.com
 Date: Wednesday, 4 February, 2009, 6:04 PM
 Oh please,
 
 
 http://cygwin.com/acronyms/#TOFU
 
 
 http://cygwin.com/acronyms/#PCYMTNQREAIYR
 
 
 
 On Feb  4 17:41, Jaspreet Singh wrote:
   I was just gussing that if i made SYSTEM
   user as root user then the problem with the
 permissions will go
 
 I assume you read the Cygwin user's guide about NT
 security.  So you
 know you can tweak /etc/passwd and rename SYSTEM to root
 and see what
 happens.
 
  away the only problem is that i cant ssh or anything
 else similar
  by root user as it will be SYSTEM user and it does not
 have any password
 
 Public key authentication allows to logon as SYSTEM using
 ssh.
 
 Btw., nothing keeps you from patching webmin to recognize
 the SYSTEM
 user as root user as well.
 
 
 Corinna
 
 -- 
 Corinna Vinschen  Please, send mails
 regarding Cygwin to
 Cygwin Project Co-Leader  cygwin AT cygwin DOT com
 Red Hat
 
 --
 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/


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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: SYSTEM as root user

2009-02-04 Thread Jaspreet Singh
The reason is something that most of the people not be interested.

Reason is that i am tring to port Webmin+Virtualmin to the Cygwin for web
Administration as it is. I ran webmin as SYSTEM user and in cron module i
 gave it command like 'su USER -c crontab -l'. So webmin is now write 
crontab for other users. The reason is that SYSTEM user can 'su' to any
 user without any password needed now the problem is that webmin 
knows 'root' as superuser as it is in native in any linux system and in 
the cygwin it is 'Administrator' user it runs everything as it is supose 
to be but the problem comes when it is permissions on the conf files and 
other under /usr/local/webmin. I was just gussing that if i made SYSTEM
 user as root user then the problem with the permissions will go
away the only problem is that i cant ssh or anything else similar
by root user as it will be SYSTEM user and it does not have any password
then the question apears what will happen to other application under
that are under cygwin like chmod, named, httpd, and all the others.

the procedure i thought is following in steps

run bash as SYSTEM user (i got code how to do that)

run setup.exe (i am using Cygwin 1.7)

install just for me

edit passwd to make copy of SYSTEM User to above all others and rename to
root, Administrator become admin

install webmin as root user 

what will next happen dont know

Why webmin - it can do crontab for others, useradmin works fine, even mount
works fine, and bunch of other things too


--- On Wed, 4/2/09, Corinna Vinschen corinna-cyg...@cygwin.com wrote:

 From: Corinna Vinschen corinna-cyg...@cygwin.com
 Subject: Re: SYSTEM as root user
 To: cygwin@cygwin.com
 Date: Wednesday, 4 February, 2009, 3:25 PM
 On Feb  4 00:18, Jaspreet Singh wrote:
  hi,
   
   How about if i make SYSTEM user as root in cygwin and
   Administrators
   Group as root Group, even install Cygwin 1.7 by
 SYSTEM
   user, Does it
effect on Cygwin working in any way.
 
 I don't understand exactly what you're up to. 
 There's no really good
 reason to install Cygwin as SYSTEM user.  You can install
 it just using
 any administrative account, that should lead to the most
 servicable
 results.  The there's only one single godlike
 admin account called
 root concept of Unix is only partly imposable on
 Windows.
 
 
 Corinna
 
 -- 
 Corinna Vinschen  Please, send mails
 regarding Cygwin to
 Cygwin Project Co-Leader  cygwin AT cygwin DOT com
 Red Hat
 
 --
 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/


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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/



Love the Cygwin Work

2009-02-03 Thread Jaspreet Singh
Hey Guys,

I just Love the Cygwin Work by cygnus, even if nobody here replies or in
 any way answer to my Question/Problems. Its really good what i realy like
was how it gets windows into linux like enviorment, Coz of this i almost 
created WCAMP Layout on Windows XP and even did that Webmin+Virtualmin
 for Virtual Hosting for bunch of my Websites that Does Nothing.

So, I think no one will still not be intersting answering my Ques but i
got another one for you Great Guys.

On Cygwin 1.7 what if i make SYSTEM User to root than making Administrator
 and make Administrators Group root Group hows that gona works. Is there
 any i said any kind of mishappening in the Cygwin Working or it will still 
works as it is the same, Coz my guess is the Right to be 'root' goes 
to SYSTEM as its the Only Almight on windows, like it can 'su' to anything.

And for the record there was somebody helped me to create useradd,
groupadd etc Scripts for Cygwin i am using them like Perl Module under
Perl as they are Perl Scripts. Thanks a Lot To That guy, as i can't
Remember his/her ID

Thanks and Thanks for Cygwin


  Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/

--
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/



SYSTEM as root user

2009-02-03 Thread Jaspreet Singh
hi,
 
 How about if i make SYSTEM user as root in cygwin and
 Administrators
 Group as root Group, even install Cygwin 1.7 by SYSTEM
 user, Does it
  effect on Cygwin working in any way.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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/



Need a good POP3/IMAP Server

2009-02-01 Thread Jaspreet Singh
Hello Guys and Grls,

Anybody here got any of the POP3/IMAP server working under cygwin. UW does not 
in a way i want it to be and it only does cram-md5 login no other login.

Anybody got Dovecot, courier-imap or cyrus-imap any of these working under 
Cygwin. Actually i am tring to complete a open source server system under 
windows with the help of Cygwin (calling it WCAMP Layout), I got apache, mysql 
(Client) and php succesefully compiled and working. Even got Webmin+Virtualmin 
working under cygwin. Now this layout contain Bind DNS, Apache, MySQL, 
PostgreSQL, PHP, Webmin and Virtualmin Working for last 8 months without any 
problem. Exim works good but it does not matter without there is no POP3 or 
IMAP.

Last thing i know is that Dovecot works but does not support something that i 
dont know. But even dint found anything by gooling how that can be done, Even 
Dovecot people got in there requirements that it works under Cygwin but they 
got nothing in documentation How To Do That ?.

If this works then theres gona be a new kind of server system.

Anybody can help

Thanks 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

--
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/



SOMETHING NEW FOR CYGWIN USERS - Accounts::Userlib

2008-11-03 Thread Jaspreet Singh
hey there get this.

--
#!/usr/bin/perl

# Accounts::Userlib for CYGWIN
#
# NOTE: I am not responsible for any kind of harm done to your system or 
feelings because of this perl module.
#
# Requirements
# 1. Perl on cygwin.
# 2. Can only be used by Administrator of the system.
# 3. /etc/passwd on cygwin with read, write and modify permission to 
Administrator.
# 4. /usr/bin/mkpasswd on cygwin with execute permission to Administrator.
# 5. NET USER command on Windows can be executed from cygwin and by 
Administrator.
# 6. Do not forget to chown by Administrator and chmod 0700, so no other user on
#your system can read, write, modify or execute this perl module and any 
other
#script that you create that uses this module.
#
# Functions List
# 1. Userlib::WinCheckUser(username)
yes| no Verify a user existance in 
Windows Accounts for given username.
# 2. Userlib::CygCheckUser(username)
yes| no | Error Verify a user existance in 
Cygwin /etc/passwd for given username.
# 3. Userlib::GetUser(username) 
data |  | Error Returns userstring data found 
in Cygwin /etc/passwd for given username.
# 4. Userlib::GetPasswd(username)   
data |  | Error Returns Passwd data from 
userstring data found in Cygwin /etc/passwd for given username.
# 5. Userlib::GetUID(username)  
data |  | Error Returns UID data from 
userstring data found in Cygwin /etc/passwd for given username.
# 6. Userlib::GetGID(username)  
data |  | Error Returns GID data from 
userstring data found in Cygwin /etc/passwd for given username.
# 7. Userlib::GetSID(username)  
data |  | Error Returns SID data from 
userstring data found in Cygwin /etc/passwd for given username.
# 8. Userlib::GetHome(username) 
data |  | Error Returns Home data from 
userstring data found in Cygwin /etc/passwd for given username.
# 9. Userlib::GetShell(username)
data |  | Error Returns Shell data from 
userstring data found in Cygwin /etc/passwd for given username.
# 10. Userlib::SetPasswd(username, passwd)  
Done   |  | Error Modify Passwd data from 
userstring data found in Cygwin /etc/passwd for given username.
# 11. Userlib::SetUID(username, UID)
Done   |  | Error Modify UID data from userstring 
data found in Cygwin /etc/passwd for given username.
# 12. Userlib::SetGID(username, GID)
Done   |  | Error Modify GID data from userstring 
data found in Cygwin /etc/passwd for given username.
# 13. Userlib::SetHome(username, home)  
Done   |  | Error Modify Home data from 
userstring data found in Cygwin /etc/passwd for given username.
# 14. Userlib::SetShell(username, shell)
Done   |  | Error Modify Shell data from 
userstring data found in Cygwin /etc/passwd for given username.
# 15. Userlib::DelUser(username)
Done   | Error  Delete userstring found in 
Cygwin /etc/passwd for given username.
# 16. Userlib::AddUser(username, passwd, UID, GID, GCOS, 
Home, Shell)   Done   | Error  Adds new userstring to 
Cygwin /etc/passwd.
# 17. Userlib::GetWinUser(username) 
data | Error  Returns default userstring from 
Cygwin /usr/bin/mkpasswd for given username.
# 18. Userlib::GetWinPasswd(username)   
data | Error  Returns Passwd found in default 
userstring from Cygwin /usr/bin/mkpasswd for given username.
# 19. Userlib::GetWinUID(username)  
data | Error  Returns UID found in default 
userstring from Cygwin /usr/bin/mkpasswd for given username.
# 20. Userlib::GetWinGID(username)  
data | Error  Returns GID found in default 
userstring from Cygwin /usr/bin/mkpasswd for given username.
# 21. Userlib::GetWinGCOS(username) 
data | Error  

ld: Cannot Find -lldap

2008-10-23 Thread Jaspreet Singh
hi Guys,

 i am facing a problem building mod_perl2 on cygwin. I have build apache2.2 on 
cygwin which is working properly and also installed Bundle::Apache from Cpan. 
The make command stuck at ld: cannot find -lldap and in the starting it says ( 
probably harmless ) cannot find -lldap. By building apache2.2 i got apxs and 
some files in lib directory and etc.

Can anybody tell me how to build mod_perl2 under this situation.

Thanks !


  Cricket on your mind? Visit the ultimate cricket website. Enter 
http://beta.cricket.yahoo.com


--
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/



Login as SYSTEM

2008-06-12 Thread Jaspreet Singh
Hey guys,

i got login to bash shell as SYSTEM account. after loged in i can su to any 
user on my system without password.

HOW it starts as localservice

cygrunsrv -I runassys -p C:/windows/system32/cmd.exe -a /C start CMD.EXE /K 
D:\cygwin\bin\bash.exe --login -i -i --nohide

net start runassys

You are loged in as SYSTEM

The thing is this that i want that 'su' work as it works under UNIX and cron to 
execute other users crontab. i think i can be done with perl script.


  Bollywood, fun, friendship, sports and more. You name it, we have it on 
http://in.promos.yahoo.com/groups/bestofyahoo/


--
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/



Permission Denied

2008-05-31 Thread Jaspreet Singh
hi guys,

here's THE thing

i installed cygwin with tar, make and perl as Administrator. then i created 
virtual user root in /etc/passwd copy of Administrator user in Windows uid 0 
and there was already root group in /etc/group gid 0. Now the problem is that 
when i logon as administartor (as root in cygwin) and try to un-tar, gunzip any 
file or even try to install any perl module with cpan, it always exit with 
error like cannot change permission uid 1000, gid 1000 or cannot change 
permission uid 501, gid 20 and many other error like these. and what i see is 
that there is no user or group with these uid and gid in passwd and group file, 
not even any virtual user.

need help


  Explore your hobbies and interests. Go to 
http://in..promos.yahoo.com/groups/


--
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: /dev/console

2008-05-23 Thread Jaspreet Singh
Din't found any log /dev/console in syslog.conf

My syslog.conf

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
#*.info;mail.none;authpriv.none /var/log/messages

# The authpriv file has restricted access.
#authpriv.* /var/log/secure

# Log all the mail messages in one place.
#mail.* /var/log/maillog

#For a start, use this simplifed approach.
*.* /var/log/messages

--- On Thu, 22/5/08, Corinna Vinschen [EMAIL PROTECTED] wrote:

 From: Corinna Vinschen [EMAIL PROTECTED]
 Subject: Re: /dev/console
 To: cygwin@cygwin.com
 Date: Thursday, 22 May, 2008, 6:50 PM
 On May 22 18:35, Jaspreet Singh wrote:
  i am getting some kinda error with init, its not
 executing scripts in runlevels. syslogd logs
  
  May 22 18:07:37 node1 init: PID 1832: `init'
 service stopped, exit status: 0
  May 22 18:07:37 node1 init: open(/dev/console):
 Permission denied
  May 22 18:07:43 node1 init: can't open
 /dev/console
  May 22 18:07:43 node1 init: can't open
 /dev/console
  May 22 18:07:43 node1 init: Entering runlevel: 3
  May 22 18:07:43 node1 init: open(/dev/console):
 Permission denied
  May 22 18:07:44 node1 init: PID 2744: `init'
 service started
  May 22 18:07:44 node1 webmin[2296]: Webmin starting 
  May 22 18:07:45 node1 init: no more processes left in
 this runlevel
  May 22 18:18:31 node1 -- MARK --
 
 You can't use /dev/console for logging.  When running
 init as a service,
 it has no console.  Change your syslogd configuration.
 
 
 Corinna
 
 -- 
 Corinna Vinschen  Please, send mails
 regarding Cygwin to
 Cygwin Project Co-Leader  cygwin AT cygwin DOT com
 Red Hat
 
 --
 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/


  Bring your gang together. Do your thing. Find your favourite Yahoo! group 
at http://in.promos.yahoo.com/groups/


--
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/



/dev/console

2008-05-22 Thread Jaspreet Singh
i am getting some kinda error with init, its not executing scripts in 
runlevels. syslogd logs

May 22 18:07:37 node1 init: PID 1832: `init' service stopped, exit status: 0
May 22 18:07:37 node1 init: open(/dev/console): Permission denied
May 22 18:07:43 node1 init: can't open /dev/console
May 22 18:07:43 node1 init: can't open /dev/console
May 22 18:07:43 node1 init: Entering runlevel: 3
May 22 18:07:43 node1 init: open(/dev/console): Permission denied
May 22 18:07:44 node1 init: PID 2744: `init' service started
May 22 18:07:44 node1 webmin[2296]: Webmin starting 
May 22 18:07:45 node1 init: no more processes left in this runlevel
May 22 18:18:31 node1 -- MARK --

anybody


  From Chandigarh to Chennai - find friends all over India. Go to 
http://in.promos.yahoo.com/groups/citygroups/


--
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/



cygwin virtual user

2008-05-13 Thread Jaspreet Singh
just a qus?

can we create virtual user in /etc/passwd file

like for real user entry is

test:unused_by_nt/2000/xp:real_UID:real_GID:name,U-PC\test,real_SID:/home/test:/bin/bash

Now above is the real userstring for real user 'test'. can i create a virtual 
user in cygwin /etc/passwd with values of real user 'test'.

like for virtual user entry is

:unused_by_nt/2000/xp:real_UID:real_GID:name,U-PC\test,real_SID:/home/:/bin/false

you can see that only login name, home dir and shell is changed.

now i just want to know that how can  login with /bin/bash, that doesn't 
matter. Real thing i want to know is that does this will work with ssh and 
telnet if i change shell to be /bin/bash and does it work with UW-IMAP, proftpd 
and UW-POP. like they recognize this user as a real user.

Anybody got any idea ?

Hey i got something else for cygwin users. I create perl script's for useradd, 
userdel, usermod, groupadd, groupmod and groupdel that works fine on windows XP 
sp2 (My System). It can also create user and group with same name. Code is 
really messy as i am newbi to perl. just started perl 4 days ago.

Anybody like to try it.  


  Best Jokes, Best Friends, Best Food and more. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/


--
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: cygwin virtual user

2008-05-13 Thread Jaspreet Singh
ok now i created virtual user with 'test' username. login and proftpd works and 
i can guess sshd and others work too.

So username, UID, GID, first part of gcos like name of user, home directory and 
shell can be changed believe me.

just 1 qus? more

How to give some different password to virtual user as it only accepts password 
of same SID, last part of gcos 

Anybody ??

Now perl scripts also have virtualuser command to create virtual user with some 
real user SID.


  Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.messenger.yahoo.com/webmessengerpromo.php/


--
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: cygwin virtual user

2008-05-13 Thread Jaspreet Singh
you got any other idea how to chnage password.

what about if i change unused_by_nt/XP/Pro


--- On Tue, 13/5/08, Corinna Vinschen [EMAIL PROTECTED] wrote:

 From: Corinna Vinschen [EMAIL PROTECTED]
 Subject: Re: cygwin virtual user
 To: cygwin@cygwin.com
 Date: Tuesday, 13 May, 2008, 8:49 PM
 On May 13 20:35, Jaspreet Singh wrote:
  ok now i created virtual user with 'test'
 username. login and proftpd works and i can guess sshd and
 others work too.
  
  So username, UID, GID, first part of gcos like name of
 user, home directory and shell can be changed believe me.
  
  just 1 qus? more
  
  How to give some different password to virtual user as
 it only accepts password of same SID, last part of gcos 
 
 That won't work.  It's still the same underlying
 Windows user with the
 same Windows password.  That should be clear from using the
 same SID.
 
 
 Corinna
 
 -- 
 Corinna Vinschen  Please, send mails
 regarding Cygwin to
 Cygwin Project Co-Leader  cygwin AT cygwin DOT com
 Red Hat
 
 --
 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/


  Best Jokes, Best Friends, Best Food and more. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/


--
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: cygwin perl useradd command

2008-05-10 Thread Jaspreet Singh
alright now i completed. this may be not optimized code but whatever this is 
what i came up with



#!/usr/bin/perl

$userprefix  = cygusr_;
$groupprefix = cyggrp_;

# Function Output Help/Usage
sub printhelp
{
print Perl useradd command for cygwin.\n;
print \n;
print usage :\n;
print  -u  :   Username\n;
print  -p  :   Password\n;
print  -g  :   Initial Group\n;
print  -c  :   Comments\n;
print  -d  :   Home Directory\n;
print  -s  :   Shell\n;
print  -m  :   Copy /etc/skel/* to home_directory\n;
print  -h  :   Show usage\n;

};

   # Resolve passed arguments
   $usr= ;   # Username
   $pass   = ;   # Password
   $pUID   = ;   # UID
   $pGID   = ;   # GID (Initial Group)
   $comm   = ;   # Comments
   $home   = ;   # Home Directory
   $shell  = ;   # User Shell
   $createhome = ;
   while ($ARGV[$i])
{
if ($ARGV[$i] eq -h)
{
   die printhelp;
}
elsif ($ARGV[$i] eq -u)
{
   $usr = $ARGV[$i + 1];
}
elsif ($ARGV[$i] eq -p)
{
   $pass = $ARGV[$i + 1];
}
elsif ($ARGV[$i] eq -g)
{
   $pGID = $ARGV[$i + 1];
}
elsif ($ARGV[$i] eq -c)
{
   $comm = $ARGV[$i + 1];
}
elsif ($ARGV[$i] eq -d)
{
   $home = $ARGV[$i + 1];
}
elsif ($ARGV[$i] eq -s)
{
   $shell = $ARGV[$i + 1];
}
elsif ($ARGV[$i] eq -m)
{
   $createhome = $ARGV[$i];
}
$i++;
}

   if ($usr eq )
  {
 die printhelp;
  }

   if ($pGID eq )
  {
 $pGID = default;
  }
   else
  {
   # If GID is specified in the arguments then we find out the
   # GID Numeric

   # for cygwin verification we open : /etc/group

   open(GROUP, /etc/group) || die Can't open group for reading.\n;
   while (GROUP)
 {
   ($gname, $sid, $ggid, $list) = split(/:/);
if (($ggid eq $pGID) || ($gname eq $pGID))
   {
 $temp = $ggid;
   }
 }
   close(GROUP);
   if ($temp ne )
  {
   $pGID = $ggid;
  }
   else
  {
   $pGID = default;
  }
  }

   if ($comm eq )
  {
 $comm = CYGWIN User;
  }

   if ($home eq )
  {
 $home = /home/.$usr;
  }

   if ($shell eq )
  {
 $shell = /bin/bash;
  }

   # Temp Userstring
   $userstring = 
$usr.:.$pass.:.$pUID.:.$pGID.:.$comm.:.$home.:.$shell;
   # Username for windows
   $finalusr = $userprefix.$usr;

   #-#
   # There shouldn't be any user with $usr and $finalusr on widows or cygwin #
   #-#

   # Now we have to verify that there isn't any user with $usr username
   # on windows and in /etc/passwd file of cygwin for real user verificatoion.

   # for windows verification we use : /usr/bin/mkpasswd -l -u $usr

   $verifyusr = `/usr/bin/mkpasswd -l -u $usr 21`;
   chop ($verifyusr);
   if ($verifyusr ne mkpasswd (272): [2221] The user name could not be 
found.\r)
  {
   die User with same user name already exists. see windows accounts.\n;
  }

   # for cygwin verification we open : /etc/passwd

   open(PASSWD, /etc/passwd) || die Can't open passwd for reading.\n;
   while (PASSWD)
  {
($name,$passwd,$uid,$gid, $gcos,$dir,$zshell) = split(/:/);
if ($name eq $usr)
   {
close(PASSWD);
die User with same user name already exists. see /etc/passwd..\n;
   }
  }
   close(PASSWD);

   # Now we have to verify that there isn't any user with $finalusr username
   # on windows and in /etc/passwd file of cygwin for real user verificatoion.

   # for windows verification we use : /usr/bin/mkpasswd -l -u $finalusr

   $verifyusr = `/usr/bin/mkpasswd -l -u $finalusr 21`;
   chop ($verifyusr);
   if ($verifyusr ne mkpasswd (272): [2221] The user name could not be 
found.\r)
  {
   die User with same user name and prefix already exists. see windows 
accounts.\n;
  }

   # for cygwin verification we open : /etc/passwd

About init

2008-05-09 Thread Jaspreet Singh
hey guys,

 i got a QUS?

 When i run init from net start init it does not start services in rc.d or 
init.d directories.

Anybody got an idea


  Bring your gang together. Do your thing. Find your favourite Yahoo! group 
at http://in.promos.yahoo.com/groups/


--
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/



xinetd and telnet

2008-05-09 Thread Jaspreet Singh
i installed cygwin and xinetd on windows XP sp2. then i disabled all xinetd 
services but telnet. Now in log it says

Must specify a server in telnet

telnet xinetd config

service telnet
{
flags   = REUSE
socket_type = stream
wait= no
server  = /usr/sbin/in.telnetd
log_on_failure  += USERID
user= SYSTEM
disable = no
}

anybody has any idea



  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups/


--
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/



cygwin perl useradd command

2008-05-09 Thread Jaspreet Singh
hey guys,

 anybody has useradd command on cygwin. Here's something interesting.
i wrote a perl script for useradd command. it takes following arguments

 -u :   Username\n;
 -p :   Password\n;
 -g :   Initial Group\n;
 -c :   Comments\n;
 -d :   Home Directory\n;
 -s :   Shell\n;
 -m :   Copy /etc/skel/* to home_directory\n;
 -h :   Show usage\n;
 -v :   Show version\n;
 --help :   Show usage\n;
 --version  :   Show version\n;

like useradd.pl -u username -p password

then it resolves all given arguments, like -u, -p, -c and others

then adds _usr at the end of the username passed to script

then it creates a NET USER /ADD command with /COMMENTS: and /FULLNAME: if -c is 
found in arguments

then it execute it

confirm it by executing mkpasswd -l -u username command, it returns usersting 
like 

username:password:UID:GID:comments:home_dir:user_shell 

or

error

if username is found in output then new user is added to windows

NOW, this is where i am stuck when new user is suppose to be added to 
/etc/passwd file

the thing i want to have is enable this script to add user and group of same 
name to passwd and group file

where i am stuck is that it can add default userstring output from mkpasswd 
command to /etc/passwd file. but what i want is to verify if theres any user 
with same username (username minus _usr) in passwd file if there is it is 
noty even suppose to add user to windows. if there is a group with same 
username in group file it is suppose to add a virtual user like

username minus _usr:UID:GID of group with same 
username:comments:home_dir:user_shell

to passwd file.

if anybody even understand what i am tring to do and can complete this perl 
script. please reply

if anybody completes this then that person can also create usermod, userdel, 
groupadd, groupmod, and groupdel perl scripts to 

THIS WILL BE A REALY COOL THING IN CYGWIN


HERES MY useradd.pl SAMPLE


#!/usr/bin/perl

$ArgsCount = $#ARGV + 1;
$version = Open Source Perl useradd Script For cygwin\n;
use constant vbcrlf = \r\n;

foreach $i (0 .. $#ARGV) 
{
  if ($ARGV[$i] eq -v) 
{
die $version;
}
  elsif ($ARGV[$i] eq --version)
{
die $version;
}
  elsif ($ARGV[$i] eq -h)
{
print $version;
print \n;
print usage :\n;
print  -u  :   Username\n;
print  -p  :   Password\n;
print  -g  :   Initial Group\n;
print  -c  :   Comments\n;
print  -d  :   Home Directory\n;
print  -s  :   Shell\n;
print  -m  :   Copy /etc/skel/* to home_directory\n;
print  -h  :   Show usage\n;
print  -v  :   Show version\n;
print  --help  :   Show usage\n;
die  --version :   Show version\n;
}
  elsif ($ARGV[$i] eq --help)
{
print $version;
print \n;
print usage :\n;
print  -u  :   Username\n;
print  -p  :   Password\n;
print  -g  :   Initial Group\n;
print  -c  :   Comments\n;
print  -d  :   Home Directory\n;
print  -s  :   Shell\n;
print  -m  :   Copy /etc/skel/* to home_directory\n;
print  -h  :   Show usage\n;
print  -v  :   Show version\n;
print  --help  :   Show usage\n;
die  --version :   Show version\n;
}
}

$username = ;
$password = ;
$UID = ;
$GID = ;
$comments = ;
$home = ;
$shell = ;


foreach $i (0 .. $#ARGV) 
{

if (($ARGV[$i] eq -u)  ($username eq ))
{

   if (($ARGV[$i + 1] eq -u) || ($ARGV[$i + 1] eq -p)
  || ($ARGV[$i + 1] eq -g) || ($ARGV[$i + 1] eq -c)
  || ($ARGV[$i + 1] eq -d) || ($ARGV[$i + 1] eq -s)
  || ($ARGV[$i + 1] eq -m))
  {
die command failed.\n;
  }  
   else
  {
$username = $ARGV[$i + 1];
  }

}

elsif (($ARGV[$i] eq -p)  ($password eq ))
{

   if (($ARGV[$i + 1] eq -u) || ($ARGV[$i + 1] eq -p)
  || ($ARGV[$i + 1] eq -g) || ($ARGV[$i + 1] eq -c)
  || ($ARGV[$i + 1] eq -d) || ($ARGV[$i + 1] eq -s)
  || ($ARGV[$i + 1] eq -m))
  {
#die command failed.;
  }  
   else
  {
$password = $ARGV[$i + 1];
  }

}

elsif (($ARGV[$i] eq -g)  ($GID eq ))
{

   if (($ARGV[$i + 1] eq -u) || ($ARGV[$i + 1] eq -p)
  || ($ARGV[$i + 1] eq -g) || ($ARGV[$i + 1] eq -c)
  || ($ARGV[$i + 1] eq -d) || ($ARGV[$i + 

Re: cygwin perl useradd command

2008-05-09 Thread Jaspreet Singh
ok Hugh Sasse

as you have saw what i have done. i understand everything you wrote as i am a 
programer like about using functions and grep. But, the problem is that i am a 
windows programer and do programing in Visual Basic, I have already compleated 
this useradd, usermod , userdel, etc Commands in VB.
VB programs cant be distributed as it need licence from Microsoft. So, i was 
tring to do open source kinda thing.

Believe me i dont know anything about Perl. I was just tring to write a script 
for these commands and still tring as i have ported webmin and virtualmin to 
cygwin with all of the required modules for virtual server and administartion 
of system, the only command it requre is now thease useradd, userdel and so on, 
And quotaon, quotadel and so on. Even quota can work on cygwin as on windows 
with NTFS partition it has command fsutil quota to manupulate user quota on 
command line.

so as i am tring if you can do what you just wrote to my sample perl script it 
will be really a great.

The big problem is user and group with same name with virtualization in passwd 
and group file. How to calculate that

The easiest way is create real user with _usr and real group with _grp at 
the end of the username and groupname in windows, then input in passwd and 
group file on cygwin without _usr and _grp, with real UID and GID.


  Meet people who discuss and share your passions. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/


--
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/



same user and group

2008-03-07 Thread Jaspreet Singh
hi,

i am using cygwin on windows xp pro. can any body have idea how to create same 
user and group with same name like bin


  Save all your chat conversations. Find them online at 
http://in.messenger.yahoo.com/webmessengerpromo.php


--
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: IMAP/POP3 Support

2008-01-15 Thread Jaspreet Singh
I compiled dovecot but no good. Dovecot does not
start.
it says

dovecot: Jan 15 15:17:03 Info: Dovecot v1.0.10
starting up
dovecot: Jan 15 15:17:03 Error: Auth process died too
early - shutting down

where /usr/local/libexec/dovecot/dovecot-auth says

dovecot-auth: Fatal: You'll need to add at least one
userdb

$/usr/local/sbin/dovecot -n
# 1.0.10: /usr/local/etc/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot_info.log
protocols: imap
ssl_disable: yes
login_dir: /var/run/dovecot/login
login_executable:
/usr/local/libexec/dovecot/imap-login
login_user: root
login_process_size: 0
mail_process_size: 0
auth default:
  username_chars:
  process_size: 0
  passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
  userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

--
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/



IMAP/POP3 Support

2008-01-14 Thread Jaspreet Singh
Hi
 
I got cygwin working with apache, bind, exim, mailman,
php, mysql and pgsql. But there's need for imap/pop3
server which support mysql database. I got webmin
working with cygwin to control my virtual servers. I
am using vexim with exim. So i need a imap/pop3 server
that can work with exim/vexim with mysql, virtual
domain, virtual users support. 
 
So anybody compiled cyrus-imap, courier-imap or
dovecot on cygwin.
 
ANYBODY

They all tell me this is wrong list. does it matter if
you have the answser.

So ANYBODY here, The right person


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


--
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: IMAP/POP3 Support

2008-01-14 Thread Jaspreet Singh
Nop, no corect answer in
http://sourceware.org/ml/cygwin/2007-12/msg00404.html.
I dont think even they got it working. Anything else
you got.


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


--
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: IMAP/POP3 Support

2008-01-14 Thread Jaspreet Singh
Actually dovecot people claims that dovecot can work
with cygwin with some code change. But they dint
listed it how to. I asked them in the mail but they
say they cant help as they dont have windows Ha Ha.

I dont think they want to help. 


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

--
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/