Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Cygwin - file ownership changes unexpectedly from Administrator to cron_server Post 302401993 by shekhar on Monday 8th of March 2010 01:38:02 PM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

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

8. 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

9. 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

10. 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
File::Spec::Cygwin(3pm) 				User Contributed Perl Documentation				   File::Spec::Cygwin(3pm)

NAME
File::Spec::Cygwin - methods for Cygwin file specs SYNOPSIS
require File::Spec::Cygwin; # Done internally by File::Spec if needed DESCRIPTION
See File::Spec and File::Spec::Unix. This package overrides the implementation of these methods, not the semantics. This module is still in beta. Cygwin-knowledgeable folks are invited to offer patches and suggestions. canonpath Any "" (backslashes) are converted to "/" (forward slashes), and then File::Spec::Unix canonpath() is called on the result. file_name_is_absolute True is returned if the file name begins with "drive_letter:", and if not, File::Spec::Unix file_name_is_absolute() is called. tmpdir (override) Returns a string representation of the first existing directory from the following list: $ENV{TMPDIR} /tmp $ENV{'TMP'} $ENV{'TEMP'} C:/temp Since Perl 5.8.0, if running under taint mode, and if the environment variables are tainted, they are not used. case_tolerant Override Unix. Cygwin case-tolerance depends on managed mount settings and as with MsWin32 on GetVolumeInformation() $ouFsFlags == FS_CASE_SENSITIVE, indicating the case significance when comparing file specifications. Default: 1 COPYRIGHT
Copyright (c) 2004,2007 by the Perl 5 Porters. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2010-09-20 File::Spec::Cygwin(3pm)
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy