[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chown all files on a data drive



(Sorry if you get this twice Dave, I didn't reply to the list.  Second time I've done that today... sigh...)

On Jan 5, 2008 6:54 AM, dave N < drn_temp2@rogers.com> wrote:
I used to run Fedora and now all the files on my data drives are uid 500 and gid 500.
 
As root I've set the permissions for the drive (loaded under /share/other) to be owned by root but the group to be users.  this didn't get recursively filtered down.
 
Now under Debian the same user name and password I'd previously had are uid 1000 and gid 1000. Though I can access the files on the drive I can't do anything with them except as root.
 
How can I rectify this? chown -R 1000:1000?
 
This'll cause problems with the lost+found as well as any .Trash folders, should I then change the uids and gids back?

I'm not sure exactly what you're trying to accomplish.  If you want everyone to have access to the drive you can do something like:

# chown -R root:root /share/other
# chmod -R o+rwX /share/other

If you only want your user account to have access then something like:

# chown -R youruser /share/other
# chown root:root /share/other
# chown root:root /share/other/lost+found

--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
Reply to: