public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* permission problems (and more)
@ 2004-04-14 20:43 none none
  2004-04-14 21:08 ` Larry Hall
  0 siblings, 1 reply; 8+ messages in thread
From: none none @ 2004-04-14 20:43 UTC (permalink / raw)
  To: cygwin

Running cygwin (on Windows 2000) for a few months, and
finally decided that I wanted sshd and cron activated.

Logged on as administrator and did:

cron:
cygrunsrv -I cron -p /bin/cron -a -D

sshd:
run the ssh-host-config script and answer the questions (I
read several tutorials that all said about the same thing)

I did answer "tty ntsec" in response to the question about
the CYGWIN environment string (instead of going through the
environment variables string of system properties - and I
noticed that it did not show up).

When I rebooted the machine, neither of these would start
(they both do appear in the service list, though). The errors:

The cron service failed to start due to the following error: 
Access is denied.

The CYGWIN sshd service failed to start due to the following error:
Access is denied.

I have a rough idea of the problem (I don't think I have
the right permissions on the necessary cygwin files).

Can someone tell me:

1. Who or what (service? system?) needs which permissions
to make these work, and on which files?

2. Does some way exist so that I can start and stop these
as a regular user?

3. Does any documentation exist on what permissions files
should have (and can I recover from my present situation
where I own most of the files as a regular user)?

3a. Does some way exist for a regular user (I know that "su"
doesn't work) to get access to edit important cygwin files
without having to log off and long in as administrator?

4. When I finally get sshd working, can I log in as a domain
user (and if so, how do I differentiate between a domain user
and a local user when logging onto the machine)?

Thank you so much for your help.


	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: permission problems (and more)
@ 2004-05-06  3:29 Larry Hall (RFK Partners, Inc)
  2004-05-06  5:08 ` none none
  0 siblings, 1 reply; 8+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2004-05-06  3:29 UTC (permalink / raw)
  To: none none, Cygwin List

At 10:51 PM 5/5/2004, you wrote:
>--- Larry Hall wrote:
>> OK, first check the output of /var/log/cron.log.
>> If that doesn't clarify the situation for you, send
>> it and the output of 'ls -Rl /var' to the list.
>
>$ ls -Ral /var
>/var:
>total 0
>drwxr-x---+   3 user     Users           0 Thu Mar 25 18:43:15 2004 cache/
>drwxrwxrwt+   3 user     Users           0 Wed Oct 29 10:45:04 2003 cron/
>dr-xr-xr-x+   2 Administ Administ        0 Mon Apr 12 12:02:10 2004 empty/
>drwxr-x---+   2 user     Users        4096 Mon Apr 19 16:38:40 2004 log/
>drwxr-x---+   3 user     Users           0 Wed Oct 29 10:43:56 2003 run/
>drwxr-x---+   2 user     Users           0 Wed Oct 29 10:43:03 2003 tmp/
>
>/var/cache:
>total 0
>drwxr-x---+   2 user     Users           0 Thu Mar 25 18:43:15 2004 man/
>
>/var/cache/man:
>total 0
>
>/var/cron:
>total 0
>drwxrwxrwt+   2 user     Users           0 Mon Apr 19 15:46:13 2004 tabs/
>
>/var/cron/tabs:
>total 0
>-rw-r-----    1 Administ SYSTEM          0 Mon Apr 19 15:46:13 2004 administrator
>-rw-r-----    1 user     SYSTEM          0 Mon Apr 19 14:34:24 2004 user
>
>/var/empty:
>total 0
>
>/var/log:
>total 1564
>-rwx------+   1 user     Domain U        0 Mon Apr 12 12:02:09 2004 lastlog*
>-rwxr-x---    1 user     Users     1502256 Fri Apr 23 10:29:25 2004 setup.log*
>-rwxr-x---    1 user     Users       97787 Fri Apr 23 10:29:25 2004 setup.log.full*
>
>/var/run:
>total 0
>drwxr-x---+   2 user     Users           0 Wed Oct 29 10:43:56 2003 stunnel/
>-rwxr-x---    1 user     Users           0 Fri Apr 23 10:28:02 2004 utmp*
>
>/var/run/stunnel:
>total 0
>
>/var/tmp:
>total 0
>
>
>Again, I think I have the permissions screwed
>up. A couple of people have suggested that I
>reinstall everything, but even if I do that, I
>have to make certain that I don't repeat any
>mistakes that I made.


Then again, sometimes it's easier to start from a known state and work
step by step than to try to find where something went wrong.

 From a comparison of your environment with mine, I see that you don't give
specific permissions to 


--
Larry  


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-06 23:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-14 20:43 permission problems (and more) none none
2004-04-14 21:08 ` Larry Hall
2004-04-26 21:33   ` none none
2004-04-26 23:21     ` Larry Hall
2004-05-06  2:51       ` none none
2004-05-06  3:29 Larry Hall (RFK Partners, Inc)
2004-05-06  5:08 ` none none
2004-05-06 23:17   ` Larry Hall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).