Cygwin - file ownership changes unexpectedly from Administrator to cron_server

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Cygwin - file ownership changes unexpectedly from Administrator to cron_server
# 1  
Old 03-08-2010
Cygwin - file ownership changes unexpectedly from Administrator to cron_server

Hi Everyone,

Not sure where to post but I am completely lost and need help urgently. Hope you guys can provide me the solution.

I have Windows XP on my machine and was working fine with all the softwares. Today I installed "cygwin" on my machine and was playing with it. I am not sure what command I fired which caused this issue BUT my administrator user is now changed to "cron_server" (I was installing cron service from cygwin)

When I rebooted my machine, the administrator user is replaced with "cron_server". I can login fine, but everything is changed as if it is a new machine. Data is safe but here is the ownership from cygwin:

Code:
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 17:25 .
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 17:25 ..
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 19:12 .ssh
-rw-r--r--  1 cron_server mkpasswd   57 2010-03-08 18:11 Cygwin.bat
-rw-r--r--  1 cron_server mkpasswd 7022 2010-03-08 18:11 Cygwin.ico
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 18:06 bin
d--x--x--x  6 cron_server mkpasswd    0 2006-12-01 05:30 cygdrive
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 18:08 dev
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 17:26 etc
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 18:06 home
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 18:06 lib
dr-xr-xr-x 10 cron_server mkpasswd    0 2006-12-01 05:30 proc
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 18:06 tmp
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 18:06 usr
drwxr-xr-x  1 cron_server mkpasswd    0 2010-03-08 17:25 var

These are assigned recursively to all the files/folders on the system. Before it was:

Administrator:None

Please help me to get my machine into original state.

I know this is a long post but this is the only way I could explain things.

Last edited by radoulov; 03-09-2010 at 07:48 AM.. Reason: scottn: Code tags; radoulov: fixed the title
# 2  
Old 03-25-2010
Check to see if there is an entry in your password file for both accounts, cron_server and administrator.

If both are there, check the uid to see if they are the same number - that may be the issue. Pick one and change the uid to something not used.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File Ownership Change

Hi, I have several directories under an upload directory where differnt users upload their files (with exxactly the same file name every week) using their own user ids. There is a requirement that once any user uploads the file I have to clean that file and remove extra whitespaces and... (3 Replies)
Discussion started by: vbhonde11
3 Replies

2. Red Hat

Linux file ownership

Hi Friends, I am using RHEL5.3 64bit. I have a data filesystem on this, which have lot of files copied from another server. I cannot see correct owner and group displayed for these servers. It shows 113 for owner and 755 for group. Anybody please tell me why it is? Regards, Arumon (1 Reply)
Discussion started by: arumon
1 Replies

3. UNIX for Dummies Questions & Answers

What is the need of ownership to a file/dir?

Hi, I understand the permissions of a file/directory. I just needs to understand how ownership works. Can some one help me on this please? Thanks in advance. (6 Replies)
Discussion started by: praveen_b744
6 Replies

4. UNIX for Dummies Questions & Answers

Access file ownership related questions

I have two issues; any help regarding this would be highly appreciated. We deployed a file abc using pqr id. So the owner is of abc file (shell script) is ‘pqr'. However, abc file is executed by ESP event and uses the id ‘xyz'. When the file abc is executed the owner of... (9 Replies)
Discussion started by: clearC
9 Replies

5. What is on Your Mind?

Unix Administrator and Linux Administrator transition

Hello Unix Experts, I'm going to be graduating with a CIS (Computer Information Systems) degree in the coming year. I have been offered an internship with a job title of Unix Administrator under a well known company. I understand that Unix is used for high-end servers in many large... (1 Reply)
Discussion started by: brentmd24
1 Replies

6. Shell Programming and Scripting

file ownership confusion

Hello all, I have a script that runs on both the test and production box. The script is owned by a user (abcd for example) with permission set to 700. When this script is run as a root, the log file generated has owner and group as abcdowner and abcdgroup respectively. Now, when I run the same... (4 Replies)
Discussion started by: solaix14
4 Replies

7. UNIX for Advanced & Expert Users

File group ownership changing automatically

Hi everyone, Need help with an issue. The group ownership of files on my Solaris system is getting changed automatically. Could someone tell me the reason why? And how could I correct it? One more info- everytime the ownership changes, it changes to "x". Thanks :confused: (1 Reply)
Discussion started by: top_gun
1 Replies

8. UNIX for Dummies Questions & Answers

Stubborn file ownership problem! Argh!

Hi, I have Apache running well on a Linux server, with Samba installed. I do must of my work in Notepad2 on a Windows box using Samba shares on which I am logged in as a user on the box (non-root). I recently decided to expand into cgi-perl. My /htdocs/cgi-bin directory is already part of a... (0 Replies)
Discussion started by: questor
0 Replies

9. Shell Programming and Scripting

help regarding file ownership

hi friends,i have a doubt,if there is a file for which i have only read access then is there any way to execute it,plz reply soon (5 Replies)
Discussion started by: amit007
5 Replies

10. UNIX for Dummies Questions & Answers

Unix ownership from directories and file

Hi, I have newly installed sun solaris on my pc since I would like to learn something more about unix. During the installation, I had to assign a password for the super user root.After the installation, the book I am following suggested me to create a new user which I did. My home directory is... (1 Reply)
Discussion started by: giulianob
1 Replies
Login or Register to Ask a Question