Re: USB Drive weirdness

Tomislav Skunca <[email protected]>
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <CAFC_9Oj_BsFE04aaC32znzYd9545-+0EN1wimJCG_Xbjjr2uvw@mail.gmail.com>
On Wed, Oct 12, 2011 at 12:01, Robin Paulson <[email protected]> wrote:
> On Wed, 12 Oct 2011 11:24:01 +1300, Jaco 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.
>
> yeah, i'd agree with jaco, setting +x is unnecessary and potentially
> dangerous
>

Another way would be to do a 'chown' instead of the 'chmod' and
recursively change the owner of the files.

_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.