Solved

global find and replace uid and gid, HOWTO?

Posted on 2004-10-02
1
1,113 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Postfix issues with spam/auth attempts under NAT 9 111
Choosing CentOS 16 106
How to Remove files with a Date in the Filename with Linux Scripting 3 55
error log using ftp 7 56
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

808 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