RE: SSH SAMBA

2009-06-17 Thread Holikar, Sachin (ext)
Hello,
 
Our requirement was to enable our users to be able to connect to Windows XP 
machine via SSH access. Once connected they should be able to go into their 
home directory. Their respective home directory should be Samba mounted onto 
WinXP machine so that users can simply cd to their respective drive letter 
(onto which their home dir is mounted.) and work.
We could manage to cnfigure cygwin and ssh ... so that when users logs in 
..they get a cygwin bash shell.We have configured ssh as Administrator and 
cygwin is installed in the same profile. In order to do samba mount , we made a 
user map his home directory onto a windows drive as Z: and other users home dir 
onto drive Y:. Both got shared. And when both users logged in via ssh, they 
could see the shared drives ie. Z and Y. 
Now the problem is , Not only both the users are able to go into drives Y and Z 
but they can write in these shares as well. Means one user can write into other 
users home directory. which is simply not acceptable!!.
How do we rectify this issue? Kindly suggest.
 
Thanx.

--
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: SSH SAMBA

2009-06-17 Thread Holikar, Sachin (ext)


Hello,

The SAMBA server is SuSE linux and home directories are samba shared and are in 
use with proper permissions. What permissions are you talking about here?
The permissions of the home directories are already been set on Linux Server. 
There is not problem with that.
Am I missing anything to point out here? Plz let me know. 

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Larry Hall (Cygwin)
Sent: Mittwoch, 17. Juni 2009 16:06
To: cygwin@cygwin.com
Subject: Re: SSH SAMBA

Holikar, Sachin (ext) wrote:
 Hello,
  
 Our requirement was to enable our users to be able to connect to Windows XP 
 machine via SSH access. Once connected they should be able to go into their 
 home directory. Their respective home directory should be Samba mounted onto 
 WinXP machine so that users can simply cd to their respective drive letter 
 (onto which their home dir is mounted.) and work.
 We could manage to cnfigure cygwin and ssh ... so that when users logs in 
 ..they get a cygwin bash shell.We have configured ssh as Administrator and 
 cygwin is installed in the same profile. In order to do samba mount , we made 
 a user map his home directory onto a windows drive as Z: and other users home 
 dir onto drive Y:. Both got shared. And when both users logged in via ssh, 
 they could see the shared drives ie. Z and Y. 
 Now the problem is , Not only both the users are able to go into drives Y and 
 Z but they can write in these shares as well. Means one user can write into 
 other users home directory. which is simply not acceptable!!.
 How do we rectify this issue? Kindly suggest.

File-system security is provided by Windows, not OpenSSH.  Since the details
of your installation and the specific permissions of the file-systems and
files in question aren't included above, I can only assume that you haven't
set these permissions to achieve your stated goals.  So I'd recommend
checking that and making changes at that level as needed.

-- 
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
  Q: Are you sure?
  A: Because it reverses the logical flow of conversation.
  Q: Why is top posting annoying in email?

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


--
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: SSH SAMBA

2009-06-17 Thread Holikar, Sachin (ext)

Yes Jakob. We have ssh server configured  onto windows XP alongwith Cygwin. 
After this configuration, we did a samba mount from a Linux Server of lets say 
my home directory ( the user name is again from a windows Domain Server ).

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Jakob Curdes
Sent: Mittwoch, 17. Juni 2009 16:20
To: cygwin@cygwin.com
Subject: Re: SSH SAMBA

Holikar, Sachin (ext) schrieb:
 Hello,

 The SAMBA server is SuSE linux and home directories are samba shared and are 
 in use with proper permissions. What permissions are you talking about here?
   
If you are running SAMBA on cygwin this is not Suse Linux. Samba 
relies on the ACL management of the os and the filesystem used.
Here, the filesystem is presumably NTFS and not SuSe linux. In NTFS, 
each node can be assigned permissions, similar to the linux way.
Samba sees these permissions and uses them. That is what Larry tried to 
point out. The SAMBA permissions set via the config are something still 
different on top of the OS /FS permissions. Or are you trying to say 
that you run the SSH onto a windows box which in turn has network drives 
mounted from a linux server?

HTH,
Jakob Curdes

 The permissions of the home directories are already been set on Linux Server. 
 There is not problem with that.
 Am I missing anything to point out here? Plz let me know. 
   


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


--
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: SSH SAMBA

2009-06-17 Thread Holikar, Sachin (ext)
 

Yes you are again right. We tried that option, created 2 different users onto 
WinXP and made them login and map their individual home directories in their 
respective logins. But then the problem is , when that user connects to Win XP 
via SSH , he is not able to see his mapped drive , ( df doesn't show the mapped 
drive).  Like said before , SSH is configured using Administrator account. If 
the users map their home directories in the administrators login then only they 
are able to see their home directories after connecting via SSH. 
Just saw Corinna reply, and I think Corinna understood the situation very 
correctly. The last option , I would surely give it a try. Give me few mins to 
respond.




-Original Message-
From: Jakob Curdes [mailto:j...@info-systems.de] 
Sent: Mittwoch, 17. Juni 2009 16:29
To: Holikar, Sachin (ext)
Cc: cygwin@cygwin.com
Subject: Re: SSH SAMBA

Holikar, Sachin (ext) schrieb:
 Yes Jakob. We have ssh server configured  onto windows XP alongwith Cygwin. 
 After this configuration, we did a samba mount from a Linux Server of lets 
 say my home directory ( the user name is again from a windows Domain Server ).
   
I never tried such a setup however I would bet that the permissions 
valid for the cygwin drive mounts are those of the user or users who 
were used to connect the network drives. If you want to have SAMBA drive 
a and drive b with separate access logics, you need to connect these 
drives using two separate users on the windows box AND set the 
permissions on the samba end (FS and samba) repsectively.

JC


--
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: SSH SAMBA

2009-06-17 Thread Holikar, Sachin (ext)


Tried to configure ssh for different users in XP. But the error says User is 
not having administrative privilege rights.  So nto able to start the sshd 
service inside their logins. 
We included both these users in the Administrative Group via compmgmt.msc. What 
are we missing out here?? 

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Holikar, Sachin (ext)
Sent: Mittwoch, 17. Juni 2009 16:37
To: Jakob Curdes; cygwin@cygwin.com
Subject: RE: SSH SAMBA

 

Yes you are again right. We tried that option, created 2 different users onto 
WinXP and made them login and map their individual home directories in their 
respective logins. But then the problem is , when that user connects to Win XP 
via SSH , he is not able to see his mapped drive , ( df doesn't show the mapped 
drive).  Like said before , SSH is configured using Administrator account. If 
the users map their home directories in the administrators login then only they 
are able to see their home directories after connecting via SSH. 
Just saw Corinna reply, and I think Corinna understood the situation very 
correctly. The last option , I would surely give it a try. Give me few mins to 
respond.




-Original Message-
From: Jakob Curdes [mailto:j...@info-systems.de] 
Sent: Mittwoch, 17. Juni 2009 16:29
To: Holikar, Sachin (ext)
Cc: cygwin@cygwin.com
Subject: Re: SSH SAMBA

Holikar, Sachin (ext) schrieb:
 Yes Jakob. We have ssh server configured  onto windows XP alongwith Cygwin. 
 After this configuration, we did a samba mount from a Linux Server of lets 
 say my home directory ( the user name is again from a windows Domain Server ).
   
I never tried such a setup however I would bet that the permissions 
valid for the cygwin drive mounts are those of the user or users who 
were used to connect the network drives. If you want to have SAMBA drive 
a and drive b with separate access logics, you need to connect these 
drives using two separate users on the windows box AND set the 
permissions on the samba end (FS and samba) repsectively.

JC


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


--
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 SSH Multiple Users

2009-06-09 Thread Holikar, Sachin (ext)
 

Hi,

After enough tries we were able to start the sshd in our environment and local 
users are also able to login. But in comes the next problem.
We have samba mounted a share onto this windows system. The user with which we 
samba mounted the share , is able to see the shares in Cygwin. But other users 
are not able to see the share when logged in through ssh and checked with df. 
We expect to see this share by all the local users who are logged in via SSH.

Any suggestiosns are welcome please.

Thanks,
Sac 
-Original Message-
From: Holikar, Sachin (ext) 
Sent: Freitag, 5. Juni 2009 09:09
To: 'cygwin@cygwin.com'
Subject: RE: Cygwin SSH Multiple Users



Hello,

We reinstalled WINXP and CYGWIN with another dumps. But still not able to start 
the sshd service. Really frustrated as we followed exact steps given in most of 
the internet help pages. So whats going wrong , is there any way to find out 
what more is needed or so? Where can we have the sshd logs.
One file we found is /var/log/sshd.log ...But its empty...
Please suggest.


Thanks,
sac 

-Original Message-
From: Holikar, Sachin (ext) 
Sent: Donnerstag, 4. Juni 2009 08:14
To: 'cygwin@cygwin.com'
Subject: RE: Cygwin SSH Multiple Users


Hello,

Thanks for the info Corinna but ultimately we aint able to start the service 
somehow. And only way to start is to start with the user mac using 
/usr/sbin/sshd.
But then no other user can connect via ssh to this machine. The work around we 
provided was copiying the ssh public keys of the user say admin and then
connecting from remote machine using ssh -l mac winxp and then admin gets the 
ssh access as mac. 
But now the requirement is to be able to login as different users to this 
machine and we are stuck up. Really confused what went wrong.
Any hint will be much appreciated.

Thanks,
sac 

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Corinna Vinschen
Sent: Mittwoch, 3. Juni 2009 17:53
To: cygwin@cygwin.com
Subject: Re: Cygwin SSH Multiple Users

On Jun  3 11:11, Georg Nikodym wrote:
 Also, Win32 error 1062 doesn't tell anybody anything.  Paste more of  
 the session to provide some context.

bash$ net helpmsg 1062

The service has not been started.


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/


--
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 SSH Multiple Users

2009-06-09 Thread Holikar, Sachin (ext)

Thanks for the reply but problem is no other users are able to see the samba 
shares through cygwin or via ssh(df). Only the user with which sshd is started 
is able to see the samba share.
Hope I am clear this time.

Thanks,
Sac  

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Huang Bambo
Sent: Dienstag, 9. Juni 2009 12:53
To: cygwin@cygwin.com
Subject: Re: Cygwin SSH Multiple Users

Everyone should mount by itself.

2009/6/9 Holikar, Sachin (ext) sachin.holikar@siemens.com:


 Hi,

 After enough tries we were able to start the sshd in our environment and 
 local users are also able to login. But in comes the next problem.
 We have samba mounted a share onto this windows system. The user with which 
 we samba mounted the share , is able to see the shares in Cygwin. But other 
 users are not able to see the share when logged in through ssh and checked 
 with df. We expect to see this share by all the local users who are logged in 
 via SSH.

 Any suggestiosns are welcome please.

 Thanks,
 Sac
 -Original Message-
 From: Holikar, Sachin (ext)
 Sent: Freitag, 5. Juni 2009 09:09
 To: 'cygwin@cygwin.com'
 Subject: RE: Cygwin SSH Multiple Users



 Hello,

 We reinstalled WINXP and CYGWIN with another dumps. But still not able to 
 start the sshd service. Really frustrated as we followed exact steps given in 
 most of the internet help pages. So whats going wrong , is there any way to 
 find out what more is needed or so? Where can we have the sshd logs.
 One file we found is /var/log/sshd.log ...But its empty...
 Please suggest.


 Thanks,
 sac

 -Original Message-
 From: Holikar, Sachin (ext)
 Sent: Donnerstag, 4. Juni 2009 08:14
 To: 'cygwin@cygwin.com'
 Subject: RE: Cygwin SSH Multiple Users


 Hello,

 Thanks for the info Corinna but ultimately we aint able to start the service 
 somehow. And only way to start is to start with the user mac using 
 /usr/sbin/sshd.
 But then no other user can connect via ssh to this machine. The work around 
 we provided was copiying the ssh public keys of the user say admin and then
 connecting from remote machine using ssh -l mac winxp and then admin gets the 
 ssh access as mac.
 But now the requirement is to be able to login as different users to this 
 machine and we are stuck up. Really confused what went wrong.
 Any hint will be much appreciated.

 Thanks,
 sac

 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
 Corinna Vinschen
 Sent: Mittwoch, 3. Juni 2009 17:53
 To: cygwin@cygwin.com
 Subject: Re: Cygwin SSH Multiple Users

 On Jun  3 11:11, Georg Nikodym wrote:
 Also, Win32 error 1062 doesn't tell anybody anything.  Paste more of
 the session to provide some context.

 bash$ net helpmsg 1062

 The service has not been started.


 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/


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



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


--
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 SSH Multiple Users

2009-06-05 Thread Holikar, Sachin (ext)


Hello,

We reinstalled WINXP and CYGWIN with another dumps. But still not able to start 
the sshd service. Really frustrated as we followed exact steps given in most of 
the internet help pages. So whats going wrong , is there any way to find out 
what more is needed or so? Where can we have the sshd logs.
One file we found is /var/log/sshd.log ...But its empty...
Please suggest.


Thanks,
sac 

-Original Message-
From: Holikar, Sachin (ext) 
Sent: Donnerstag, 4. Juni 2009 08:14
To: 'cygwin@cygwin.com'
Subject: RE: Cygwin SSH Multiple Users


Hello,

Thanks for the info Corinna but ultimately we aint able to start the service 
somehow. And only way to start is to start with the user mac using 
/usr/sbin/sshd.
But then no other user can connect via ssh to this machine. The work around we 
provided was copiying the ssh public keys of the user say admin and then
connecting from remote machine using ssh -l mac winxp and then admin gets the 
ssh access as mac. 
But now the requirement is to be able to login as different users to this 
machine and we are stuck up. Really confused what went wrong.
Any hint will be much appreciated.

Thanks,
sac 

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Corinna Vinschen
Sent: Mittwoch, 3. Juni 2009 17:53
To: cygwin@cygwin.com
Subject: Re: Cygwin SSH Multiple Users

On Jun  3 11:11, Georg Nikodym wrote:
 Also, Win32 error 1062 doesn't tell anybody anything.  Paste more of  
 the session to provide some context.

bash$ net helpmsg 1062

The service has not been started.


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/


--
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 SSH Multiple Users

2009-06-04 Thread Holikar, Sachin (ext)

Hello,

Thanks for the info Corinna but ultimately we aint able to start the service 
somehow. And only way to start is to start with the user mac using 
/usr/sbin/sshd.
But then no other user can connect via ssh to this machine. The work around we 
provided was copiying the ssh public keys of the user say admin and then
connecting from remote machine using ssh -l mac winxp and then admin gets the 
ssh access as mac. 
But now the requirement is to be able to login as different users to this 
machine and we are stuck up. Really confused what went wrong.
Any hint will be much appreciated.

Thanks,
sac 

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Corinna Vinschen
Sent: Mittwoch, 3. Juni 2009 17:53
To: cygwin@cygwin.com
Subject: Re: Cygwin SSH Multiple Users

On Jun  3 11:11, Georg Nikodym wrote:
 Also, Win32 error 1062 doesn't tell anybody anything.  Paste more of  
 the session to provide some context.

bash$ net helpmsg 1062

The service has not been started.


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/


--
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 SSH Multiple Users

2009-06-03 Thread Holikar, Sachin (ext)
 
Hello,
 
We have configured Cygwin on Windows XP. SOmehow we managed to configure the 
SSH onto cygwin for a user called mac. We could login to windows XP with the 
local user name mac and then start the
cygwin. And then /usr/sbin/sshd. Its the only way currently how we get to start 
the sshd daemon. And we could connect from remote system to this XP system 
using  ssh -l mac winxp.
But now the problem is we can not make other users login to this winxp host. 
Here are few of the details help you understand the environment,
 
$ ls -l /etc/ssh*
-rwxr-x--- 1 mac Kein 1482 Mar 23 13:47 /etc/ssh_config
-rw--- 1 mac Kein  668 Mar 23 13:47 /etc/ssh_host_dsa_key
-rw-r--r-- 1 mac Kein  603 Mar 23 13:47 /etc/ssh_host_dsa_key.pub
-rw--- 1 mac Kein  976 Mar 23 13:47 /etc/ssh_host_key
-rw-r--r-- 1 mac Kein  640 Mar 23 13:47 /etc/ssh_host_key.pub
-rw--- 1 mac Kein 1671 Mar 23 13:47 /etc/ssh_host_rsa_key
-rw-r--r-- 1 mac Kein  395 Mar 23 13:47 /etc/ssh_host_rsa_key.pub
-rw-r--r-- 1 mac Kein 3258 Mar 23 13:48 /etc/sshd_config
 

$ ls -ld /var/empty/
drwxr-xr-x+ 2 mac Kein 0 Mar 23 13:47 /var/empty/

Please let us know if you need anymore information. Kindly suggest or point us 
in right direction.
 
 

Thanks and Regards,

Sac


--
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 SSH Multiple Users

2009-06-03 Thread Holikar, Sachin (ext)

Hello,

Thanks for the reply. We did play around a lot with ssh-host-config but it used 
to give errors such that,
 Win32 error 1062 . 

Kindly suggest.


- Sac 

-Original Message-
From: Georg Nikodym [mailto:geo...@bitmover.com] 
Sent: Mittwoch, 3. Juni 2009 14:43
To: Holikar, Sachin (ext)
Cc: cygwin@cygwin.com
Subject: Re: Cygwin SSH Multiple Users


On 3-Jun-09, at 4:13 AM, Holikar, Sachin (ext) wrote:


 Hello,

 We have configured Cygwin on Windows XP. SOmehow we managed to  
 configure the SSH onto cygwin for a user called mac. We could  
 login to windows XP with the local user name mac and then start the
 cygwin. And then /usr/sbin/sshd. Its the only way currently how we  
 get to start the sshd daemon. And we could connect from remote  
 system to this XP system using  ssh -l mac winxp.
 But now the problem is we can not make other users login to this  
 winxp host. Here are few of the details help you understand the  
 environment,

Consider running the ssh-host-config script.

-g


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