Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-04-2002, 08:38 AM   #1 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
changing UID in /etc/passwd?

can you change the UID in /etc/passwd?

i have been trying to find a way to do it, but it looks like i cant...

arggh.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 09-04-2002, 11:18 AM   #2 (permalink)
sdeming
Code Monkey
 
Join Date: Jul 2002
Location: Michigan
Posts: 85
sdeming is on a distinguished road
You can use "chfn" to change UID, but you must be root to do so. I'm pretty sure this will leave any files that are currently owned by the user in limbo without a resolvable UID for ownership.
__________________
Scott
B4 09 BA 09 01 CD 21 CD 20 53 63 6F 74 74 24
sdeming is offline   Reply With Quote
Old 09-04-2002, 12:03 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
hey matt, i'm pretty sure this will work too
Code:
# rm -rf *


how is the redhat network working out? what do the new users think of it .. i guess they are "X-Windows" users in 2 ways now =)
sde is offline   Reply With Quote
Old 09-05-2002, 04:39 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,693
redhead is on a distinguished road
Or use:
usermod -u <new UID> username
But it will leave all owned files from teh user to be owned by the old UID, not the new one.

To handle this, use something like find, with teh parameters to search for files owned by old_uid, and then use xargs to chown them to the new_uid.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 09-05-2002, 06:46 AM   #5 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
90% of user files are on a fileserver, so modifing files is easy im doing this

find / -user OLD_UID

then just chown them all (there are only like 10-20 files peruser)

all the new systems are working out well, the smarter people actualy like the new systems.... i have a meeting in 13 minutes with all of customer service....

thanks for all the help guys
__________________


Urban Clothing
Admin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sde, changing directory script is running in? Admin PHP 2 06-23-2003 12:02 PM
Changing my IP address tomCollins Java 3 03-23-2003 09:54 AM
Changing variable type for edit box : mfc - .net sde Standard C, C++ 0 01-31-2003 09:53 AM


All times are GMT -8. The time now is 12:54 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting