• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1150
  • Last Modified:

global find and replace uid and gid, HOWTO?

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
Panini
Asked:
Panini
1 Solution
 
jlevieCommented:
The correct command would be:
 find / -gid 1003 -exec chgrp 501{} \;
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now