LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2012, 08:07 AM   #1
piiwhy
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
Question UID change without request


Hello,


I'm not sure this is the right section to post...

On a computer I'm not responsable of, UID for a file seems to have changed without any request.

The new UID is not linked to a known user
Code:
cat /etc/passwd
The new id is only one bit different from previous one :
from 0 to 1073741824 => 1000000000000000000000000000000


Is it possible that a hardware issue modified this ?


Thank you,

P?
 
Old 05-30-2012, 03:47 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Doubtful that hardware corrupted it, possibly file system corruption but I've never heard of an inode just changing the UID. sounds more like it was changed through something done on the machine itself, either a program running or a user modifying it.
 
Old 06-04-2012, 03:40 AM   #3
piiwhy
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,


Thanks for the response,

I did not find any soft/utilitie/script able to change user.

Another point which makes me think about hardware issue is that destination UID is not linked to a known user.


P?
 
Old 06-04-2012, 08:19 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
It's easy enough (as root) to set the file ownership to any numeric UID.
Code:
# touch /tmp/junk
# chown 1073741824 /tmp/junk
# ls -l /tmp/junk
-rw-r--r--. 1 1073741824 root 0 2012-06-04 08:14 /tmp/junk
# chown 5551212 /tmp/junk
# ls -l /tmp/junk
-rw-r--r--. 1 5551212 root 0 2012-06-04 08:14 /tmp/junk
 
Old 06-04-2012, 11:40 AM   #5
piiwhy
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello rknichols,


The point was not to find a way to change UID but to find the way it was changed.

In my case, the server is not touched by any administrator and i did not find any auto scripts on configuration able to change the UID which could explain the modification.

That's why i emit the hypothesis the UID was changed by drive issue.
 
Old 06-04-2012, 02:32 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I was responding to your statements:
Quote:
Originally Posted by piiwhy View Post
I did not find any soft/utilitie/script able to change user.

Another point which makes me think about hardware issue is that destination UID is not linked to a known user.
which implied that you did not know what program could change the owning UID and that a UID that did not map to any user name somehow suggested a hardware fault.
 
Old 06-08-2012, 02:34 PM   #7
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I bounced this off a few people and nobody I spoke with could think of any possible way a hardware fault could cause the uid of a file to be modified. I think you are on the wrong track here, it was done on the OS level either by a user or by another program.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to change UID Kropotkin *BSD 3 09-19-2011 05:51 PM
Change UID for a user ... things to consider j-me Linux - Newbie 5 03-04-2010 01:27 PM
how to change uid group id mfrangos79 Linux - General 1 11-07-2005 07:19 PM
Script to change uid's pingu Linux - Software 2 03-23-2005 04:15 AM
how to change UID linuxidiot2 Linux - General 2 07-30-2004 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration