Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-20-2015, 11:00 AM   #1
Registered: Jul 2006
Location: Lidingo, Sweden
Distribution: Scientific Linux 7.2, KDE
Posts: 39

Rep: Reputation: 1
Question Chaining UID on files


I used the next line found, after googling, to change user
ID from 500 to 1000 on all files with UID 500 in lib
/home/name/addressbook, but without luck.

#find /home/name/addressbook -user 500 -exec chown -h 1000 {} \;

The UID was not changed on any file.
I use Scientific Linux 7.1.
Thanks in forward for a hint on the problem.


Last edited by ostene; 06-20-2015 at 11:04 AM.
Old 06-20-2015, 11:28 AM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
I think that the way you have set up the command you will get error messages, if any, from the find command but you will not get error messages, if any, from the chown command. Try running the chown command on one of the files you want to change and see if you can get it to work or at least get a meaningful error message.

Steve Stites


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference between Real UID and Effective UID in terms of file attributes techie_san778 Linux - Server 4 05-11-2013 12:20 AM
Files have owner as uid number rather than username prollocks Red Hat 4 11-18-2009 07:08 PM
Changing the UID of a Physical Volume to a specific UID jambraun Linux - Newbie 2 02-09-2006 02:34 PM
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 08:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:18 PM.

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