Solved

global find and replace uid and gid, HOWTO?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

709 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

13 Experts available now in Live!

Get 1:1 Help Now