Re: USB Drive weirdness
Bruce Kingsbury <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <CANWgrUECcpipb2+St5QrowXxauL19GQ=YZTt9gWK7BdOJhV9LQ@mail.gmail.com> |
On 12 October 2011 11:24, Jaco <[email protected]> wrote: > >open a terminal and 'sudo chmod a+rwx -R /media/whatever' to make the root > directory and anything you already put into it writable by everyone > > Seems ridiculously dangerous to me, but I'll bite..... > I would've used some variant of `find /media/whatever -type f -exec chmod > a+rw {} \;` or some variant of `chown $(whoami)`, rather than enabling > execution on arbitrary files. > The aforementioned command would work, but seems a bit drastic: like using > a sledge-hammer to drive in a thumb-tack. Valid point. If it's a new filesystem you can drop the -R because there won't be anything to change permissions on other than the root directory. If it's an existing filesystem it would probably be safer to chown all the files, or use find to set a+rw on the files, and only set a+rwx on the directories .. _______________________________________________ NZLUG mailing list [email protected] http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug