in Cygwin , sqlplus and use ed command

2002-03-05 Thread Tiffany Chan

 Note: forwarded message attached. 

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
---BeginMessage---

I telnet to a win 2000 adv SP2 server using Cygwin.
Then sqlplus to a database (oracle 8.1.7). I would
like to use ed command in sqlplus:

SQL  define_editor=notepad(CHAR)
I changed the default editor, as notepad cannot be
displayed in telnet session:
SQL  define_editor=vi
SQL  select * from tableA;
SQL  ed

Wrote file afiedt.buf
'vi' is not recognized as an internal or external
command, operable program or batch file.

As i know cygwin call vim.exe, i try
SQL  define_editor=vim
SQL  select * from tableA;
SQL  ed

vim : Error readin input; exiting
vim : Finished

How can i use ed command (sqlplus) using Cygwin ?
Thanks





__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


---End Message---

--
Unsubscribe info:  http://cygwincom/ml/#unsubscribe-simple
Bug reporting: http://cygwincom/bugshtml
Documentation: http://cygwincom/docshtml
FAQ:   http://cygwincom/faq/


call function

2002-01-29 Thread Tiffany Chan

In Unix, function can be added in script, e.g.

#!/usr/bin/sh
#
function outmessage
{
   echo $1;
   :
   :
}
#Main 
echo Welcome
:
:
outmessage hello amy
outmessage hello peter
:
:
exit 0

I try to call function outmessage in Cygwin, but it
does work,

function:not found
 
What do I need to change for above script in order to
use function ?

thanks !

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Pls. help : passwd - misunderstanding

2002-01-29 Thread Tiffany Chan

Sorry that it may have some mis-understanding for my
previous posted question. In this mail, I describe my
problem in more detail.

Cygwin 1.3.3 is installed in a normal win 2000
advanced server A (SP2). Server A connected to Domain,
but it is not DC. 

Local users are created in Server A. passwd and
group files are created by,

$ mkgroup -l  /etc/group 
$ mkpasswd -l  /etc/passwd

When I telnet to server A (by Cygwin) with local users
account and change password,


$ passwd
Enter the new password (minimum of 5, maximum of 8
characters).
Please use a combination of upper and lower case
letters and numbers.
Old password: local user type old password here
Bad password: Too short.



After I typed passwd, it prompts me to enter old
password. After I enter old password correctly, it
shows bad password: too short.

1. Why does it display for Enter the new password
before Old password, is this correct sequence?

2. There is no place for me to enter New password. I
only have place to type old password.

3. After typing old password, it displays Bad
password: too short, i am sure my old password typed
correctly. Is the error message Bad password alert
me that my new password is too short? Actually, I have
no place to enter new password. 

I cannot find reference in archive mail, I don't have
any idea. Would you mind give me some hints ? Thanks
for your kindly help !


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Re: cannot change password using passwd command

2002-01-27 Thread Tiffany Chan

Hi all,

For account policy in both local server and domain
server, the minimum character for password is 0. 

Moreover, I can use user account to change password in
w2k GUI (ie. CTRL+ALT+DEL -- change password), with
the same set of password tried in Cygwin.

I don't want user use the console, so I hope they can
change their password using telnet.

Is there any setting needed for local user use
passwd ? 

Would you mind to help me ? THanks



On Thu, Jan 03, 2002 at 11:57:05AM +, Tiffany Chan
wrote:
 
 I cannot change password of local account using
 passwd command in Cygwin.
 
 $passwd
 Enter the new password (minimum of 5, maximum of 8
 characters).
 Please use a combination of upper and lower case
 letters and numbers.
 Old password:  i type old password here
 Bad password: Too short.
 
 I am sure that the password is typed correctly. I
am
 using w2k server.
 
 What's wrong ?

As the error message says, your password is too
short.  That
message is generated when the OS returns the error
code
NERR_PasswordTooShort which means... the password is
too short.
Your machine has a policy set that the password must
have a
minimum length, probably.

Corinna



__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Repost : cannot change password using passwd command

2002-01-27 Thread Tiffany Chan

Hi all,

For account policy in both local server and domain
server, the minimum character for password is 0. 

Moreover, I can use user account to change password in
w2k GUI (ie. CTRL+ALT+DEL -- change password), with
the same set of password tried in Cygwin.

I don't want user use the console, so I hope they can
change their password using telnet.

Is there any setting needed for local user use
passwd ? Can local user change password by passwd
?

Would you mind to help me ? THanks



On Thu, Jan 03, 2002 at 11:57:05AM +, Tiffany Chan
wrote:
 
 I cannot change password of local account using
 passwd command in Cygwin.
 
 $passwd
 Enter the new password (minimum of 5, maximum of 8
 characters).
 Please use a combination of upper and lower case
 letters and numbers.
 Old password:  i type old password here
 Bad password: Too short.
 
 I am sure that the password is typed correctly. I
am
 using w2k server.
 
 What's wrong ?

As the error message says, your password is too
short.  That
message is generated when the OS returns the error
code
NERR_PasswordTooShort which means... the password is
too short.
Your machine has a policy set that the password must
have a
minimum length, probably.

Corinna





__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




How to stop ftp in Cygwin

2002-01-16 Thread Tiffany Chan

Hi,

I want to use Microsoft FTP Service, so I would like
to stop the Ftp in Cygwin (inetd), of course, i use
cygwin for telnet.

How to stop ftp in cygwin ?

Thanks a lot

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




chown problem

2002-01-11 Thread Tiffany Chan

Cygwin 1.3.3 installed in d:\
UserA and UserB in same group GroupAB
UserA's home is in e:\home\UserA;
ownership=UserA:GroupAB; mode=755

In e:\home\UserA,
rwxrwxrwx UserA:GroupAB DirOne

In w2k security tabs, I saw :
Owner of DirOne = UserA
Mode= Everyone rwx
= UserArxw
= GroupAB  rwx  

When UserA change owner,
$ chown UserB:GroupAB DirOne
chown: changing ownership DirOne: permission denied

But in w2k security tabs, I saw
Owner of DirOne = UserA
Mode= Everyone rwx
= UserBrxw
= GroupAB  rwx  

Why ownership cannot be changed by UserA ? I tried use
chmod by administrator, it work very well. Is it
related to local policy in w2k ( I tried to add
UserA and UserB for taking ownership, but it also not
works) ?

Thanks for your kindly help.

 


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




telnet cannot see mount drive

2002-01-10 Thread Tiffany Chan

I mapped network drive (h:) in network neighboornood
in w2k SP2 advanced server. The network drive (h:) can
be accessed in both w2k My computer , w2k command
line cd and also in shortcut of Cygwin in w2k
desktop.

But when I telnet to the w2k server using Cygwin ,
type mount. I cannot see h: or /cygdrive/h:, I also
try to use mount -s h: \\server\folder, but it does
not work. I cannot cd to h:

I telnet using w2k telnet server. I see that the
network drive is mapped by typing mount, but it show
the status is not available. also cannot cd to it.

Would you mind to help me ? Thanks

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




telnet cannot see mount drive - another method

2002-01-10 Thread Tiffany Chan

I have try another method to cd to another server
rather than using mount or net use. 
In my case, I want to get/put files from w2k advanced
server to/from HP-Unix Server.

--- 
Cygwin in w2k   HP-Unix
   --User Mapping by SFU --
/home/UserA /upload/UserA 
Owner=UserA:GroupA  Owner=UserA:GroupA Mode:755

Under /upload/UserA,
755 UserA:GroupA FileOne
755 UserA:GroupA DirOne
--- 

I installed a software Service For Unix 2.0 (SFU)
which is used to map userid and group between w2k and
Unix. 

The Unix Server acts as NFS server. I telnet to w2k
using Cygwin, logon as UserA and type
$cd \\\UnixServer\\upload\\UserA
$ls -l
rw-r--r-- UserA:GroupA FileOne
rwxr-xr-x UserA:GroupA DirOne

The ownership is correct, but the mode go wrong. When
I type
$chmod 755 FileOne
The mode of FileOne also 644 shown in Cygwin. 755
shown in Unix.

UserA can delete FileOne in Cygwin. Thus I think the
ownership is mapped between w2k and Unix correctly. 

What's wrong with the mode ? Did it related to
mapping leak ? 
How to shown 755 in Cygwin when I type `chown 755
FileOne` in `\\UnixServer\upload\UserA` ?
Would you mind to help me ? Thanks a lot !



Re: telnet cannot see mount drive
From: Corinna Vinschen cygwin at cygwin dot com 
To: cygwin at cygwin dot com 
Date: Thu, 10 Jan 2002 13:45:12 +0100 
Subject: Re: telnet cannot see mount drive 
References:
[EMAIL PROTECTED] 



On Thu, Jan 10, 2002 at 09:59:16AM +, Tiffany
Chan wrote:
 I mapped network drive (h:) in network
neighboornood
 in w2k SP2 advanced server. The network drive (h:)
can
 be accessed in both w2k My computer , w2k command
 line cd and also in shortcut of Cygwin in w2k
 desktop.
 
 But when I telnet to the w2k server using Cygwin ,
 type mount. I cannot see h: or /cygdrive/h:, I
also
 try to use mount -s h: \\server\folder, but it does
 not work. I cannot cd to h:
 
 I telnet using w2k telnet server. I see that the
 network drive is mapped by typing mount, but it
show
 the status is not available. also cannot cd to
it.
 
 Would you mind to help me ? Thanks

That's how it works, unfortunately.  When telnetting
into the box
you're running in another logon session.  You have no
access
to the mapped drives of the same user when logged on
in a
desktop session.

Workaround:  Create a new drive mapping *inside* your
telnet session
using another drive letter:

net use J: 

But *DON'T FORGET* to release the drive mapping
before logging
out that very telnet session.  Otherwise this drive
letter
is never ever usable as long as the machine isn't
rebooted:

net use J: /delete

Corinna

-- 
Corinna Vinschen  Please, send mails
regarding Cygwin to
Cygwin Developer   
mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info: 
http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Use cygwin service in cluster

2002-01-08 Thread Tiffany Chan

I added Cygwin service in cluster (win2000). When the
cluster failover from node A to B, I would like to run
a batch file in node B during cygwin is started in
node B.

The batch file (file.bat) simply is:

cd h:\
chown -Rf UserA:GroupA *

Can I add this batch file to inetd.exe or somewhere,
so it will start with Cygwin ? Or iclude some path in
cygwin, so batch file will run when the cygwin is
going to start.

Thanks





__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




mount point

2002-01-03 Thread Tiffany Chan

My hard disk have c: d: e: f: drive. In Cygwin, 

$ mount
D:\cygwin\bin on /usr/bin type system (binmode)
D:\cygwin\lib on /usr/lib type system (binmode)
D:\cygwin on / type system (binmode)
D:\oracle on /oracle type system (textmode)
e: on /cygdrive/e type system (textmode)
f: on /cygdrive/f type system (textmode)
c: on /cygdrive/c type user (textmode, nomount)
d: on /cygdrive/d type user (textmode, nomount)

Use user account (not administrator), i cannot cd to
c: and d: drive initially. After i logon w2k console
using that user account, I can cd to c: and d: drive
using the user account.

I don't want user cd to c: and d: drive (except for
winnt\system32 or some useful folder, I will mount it
later). What can I do ?

I don't want to set permission using w2k security
tabs, especially files and folders under c:\winnt.

What can I do ? Thanks.
 


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Re: cannot change password using passwd command

2002-01-03 Thread Tiffany Chan


For account policy in both local server and domain
server, the minimum character for password is 0. 

Moreover, I can use user account to change password in
w2k GUI (ie. CTRL+ALT+DEL -- change password), with
the same set of password tried in Cygwin.

I don't want user use the console, so I hope they can
change their password using telnet.

Would you mind to help me ? THanks



On Thu, Jan 03, 2002 at 11:57:05AM +, Tiffany Chan
wrote:
 
 I cannot change password of local account using
 passwd command in Cygwin.
 
 $passwd
 Enter the new password (minimum of 5, maximum of 8
 characters).
 Please use a combination of upper and lower case
 letters and numbers.
 Old password:  i type old password here
 Bad password: Too short.
 
 I am sure that the password is typed correctly. I
am
 using w2k server.
 
 What's wrong ?

As the error message says, your password is too
short.  That
message is generated when the OS returns the error
code
NERR_PasswordTooShort which means... the password is
too short.
Your machine has a policy set that the password must
have a
minimum length, probably.

Corinna



__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Can I change user SID ?

2002-01-01 Thread Tiffany Chan

Hi

How to change SID in win2k ? I have the following
problem:

Two w2k Advanced servers installed Cygwin. They used
local user account. 


| Server A || Server B |

\   / 
--
| user C home|
| directory  | SAN disk ( cluster control 
--  where the disk go)
   
server A and B run cluster and shared SAN disk. User C
home directory are in SAN disk.

As using local account, user C has different SID in
two servers. 

E.g. When SAN disk is in Server A ( controlled by
cluster), in user C home directory, owner of files are
userC:None. When the cluster switch to Server B, the
owner of files become 1035:None

How can I show userC:None in both servers ? Can I
changed SID in w2k or Cygwin ? So User C have the same
SID.

Thanks 



__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cron problem: Can Domain user run cron

2001-12-19 Thread Tiffany Chan

Corinna,

There are two cases:
1. In domain controller server, both Domain admin and
Domain user can run cron correctly. There is no
problem

2. But in another w2k server (in domain, but not
domain controller), Domain admin run cron correctly .
But domain user cannot run cron, error : can't switch
user context. I used mkgroup and mkpasswd using
parameter -ld.

So did domain user run cron in server which is not
domain controller ?

Did any other suggestion for running cron job in case
two. I tried at command for w2k, it did not work as
it cannot used by admin only.

Thanks again and sorry.

ikbea




__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: cron problem: Can Domain user run cron

2001-12-19 Thread Tiffany Chan

Corinna,

In that normal domain server, I tried to mkpasswd -ld
and passwd group -ld from seversal times, but still
not work. Hm...I have not change the group file after
made. For passwd file, i only change group of Domain
administrator from 10513(None) to 10512 (Domain
admin). I also did it in passwd file of domain
controller server.

Domain user use cygwin work very well in domain server
except cron.(e.g. domain user can rcp from/to domain
contoller)

thanks again and again
ikbea


On Wed, Dec 19, 2001 at 01:01:11PM +, Tiffany Chan
wrote:
 Corinna,
 
 There are two cases:
 1. In domain controller server, both Domain admin
and
 Domain user can run cron correctly. There is no
 problem
 
 2. But in another w2k server (in domain, but not
 domain controller), Domain admin run cron correctly
.
 But domain user cannot run cron, error : can't
switch
 user context. I used mkgroup and mkpasswd using
 parameter -ld.

Care for your /etc/group file as well.  It's probably
correct on
the DC since the domain groups are also local groups
for the DC.
It's very likely incorrect for a normal domain
machine, though.
mkgroup -ld  /etc/group should help.

Corinna


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re-post : cron is not work even tried suggestion in mail list

2001-12-18 Thread Tiffany Chan

Hi,

Sorry that I have common question on cron. I got cron
error : can't switch user context. I have tried the
following suggestion in mail list:

1. remove cron and install as SYSTEM
   $rm -Rf /var/cron
   $cygrunsrv -E cron
   $cygrunsrv -R cron
   $cygrunsrv -I cron -p /usr/sbin/cron -a -D -e
CYGWIN=tty ntsec
   $cygrunsrv -S cron

   The process is running by SYSTEM

2. All files directory under /var are mode = 777;
   mode of /usr/sbin/cron = 755 ;
   mode of /etc/group and /etc/passwd = 644

3. $mkgroup -ld  /etc/group
   $mkpasswd -ld  /etc/passwd

   the server installed cygwin is in domain ( but not
domain controller), i must use domain user to login
and run crontab -e . Thus i used -ld in making
passwd and group file.

4. I tested that Domain administrator can use cron job
properly.

I used cygwin version 1.3.3 in w2k SP2 Advanced
server. I know that a new cygwin version is released.
However, as my system is in production now, i cannot
upgrade the cygwin to the most update version. Or can
i only upgrade the cron tool ?

Thanks a lot !
ikbea



__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/