LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 1
Question Chaining UID on files


Hello,

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.

ostene

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

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
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
 
  


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


All times are GMT -5. The time now is 04:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration