Re: 2 questions: 1. ssh permissions to 777 and 2. recursively change all directories/files to 777

Jim Nelson
2004-12-10T21:05:11Z

>
>>Question 2:
>>Try the following:
>>
>>-----------------------------------[cut]--------------------------------------------
>>-----------------------------------[cut]--------------------------------------------
>>
>>I use this to fix permissions on a Samba box - you will have to modify or drop the
>>chown line to leave the ownership properties alone.
>
>
> Why not adding a special group to your /etc/group or setting a default
> mask in your smb.conf ? That's what these programs, files are for..
> That would eliminate the need of your script.. And is one cronjob
> less.. One process less, memory less, cpu cycles less.. etc..
>
> J.
>

Sorry - one bit of info I left out. The same filesystem is also exported via NFS.

I don't control all the *nix boxes that connect to it, and the Slackware / Solaris
/ Red Hat mix makes for some... err... interesting file permission issues. UID's
don't matter (it's a media repository), and I only run this after some mistake was
made on the *nix side (i. e. ripping a CD as root, changing out of group users and
copying files on the server, etc.). Samba tends to be pretty well-behaved. It's
the NFS stuff that causes problems.

> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs