[wellylug] permissions munted
Daniel Pittman
daniel at rimspace.net
Thu Jul 30 21:22:09 NZST 2009
Rimu Atkinson <rimuatkinson at gmail.com> writes:
> I copied several tens of gigabytes of files off a NTFS disk and every single
> file has the most permissive permissions imaginable. Execute and write for
> everyone (see http:// rimu.geek.nz/Screenshot.png )
>
> If I do chmod -x * then all the directories can't be opened any more, which
> isn't cool.
Find works, as the other poster offered, but GNU chmod has a useful feature
for this:
chmod -R ug=rwX,o=rX /path/to/root/dir
The 'X' rather than 'x' means "execute bit only for directories".
Regards,
Daniel
--
✣ Daniel Pittman ✉ daniel at rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
More information about the wellylug
mailing list