LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-26-2006, 03:47 AM   #1
nkoplm
Member
 
Registered: May 2005
Distribution: Fedora
Posts: 92

Rep: Reputation: 15
chown-ing all files on a drive owned by one user.


i have 2 computers, both running linux. i have a user account for myself on each one. they each had their uid automaticaly assigned. (504 and 10502 or something).

recently i have been transfering a lot of files via usb stick and the uid discrepency is getting anoying.

what is the easiest way to give both accounts the same uid?

i figgure i should probably just make a new account on one of the machines that matches the other machine and chown all the files to the new user, but is there any easy way to chmod all of ones files?
 
Old 10-26-2006, 06:20 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can use the usermod command e.g.
Code:
#usermod -u 504 someuser
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd uploaded files owned by group? fredriksk Linux - Software 1 10-17-2005 08:48 AM
List files owned by user/group guideweb Linux - General 1 09-18-2004 08:18 PM
/tmp/mcop-xxxxx is accessible owned by user illtbagu Linux - Software 1 05-22-2004 10:59 AM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 01:26 AM
Un-Owned files? Half_Elf Linux - General 3 05-18-2003 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:26 PM.

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