Solved

global find and replace uid and gid, HOWTO?

Posted on 2004-10-02
1
1,103 Views
Last Modified: 2013-12-16
Hi,

I want to change uid and gid for a complete system. (building a system with multiple distros to all use one single homedir with Symlinker)

I try this command:

find /-gid 1003 -exec chgrp 501"{}" \
find: missing argument to `-exec'
but get the above error.

What is wrong with the command syntaxis?

Thanks for your help!!

Erwin
0
Comment
Question by:Panini
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 12208131
The correct command would be:
 find / -gid 1003 -exec chgrp 501{} \;
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now