Re: chflags understanding
Malcolm Kay wrote: On Friday 23 April 2004 13:02, Alden Louis-Pierre wrote: I'm looking through the Handbook to learn how to secure my FreeBSD 4.9 system. While reading 10.2( http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security-intro.ht ml ) it makes reference to the chflags command. Is there a difference between "chflags -R schg /sbin *" and "chflags schg /sbin *"? The asterisk '*' in these commands looks rather unlikely. As it stands the first on these: chflags -R schg /sbin * will set schg flags for the directory /sbin and for the whole tree down from there, AND, with the asterisk, all files in your current directory and the whole tree down from there. The second version chflags schg /sbin * will set schg on the directory /sbin, AND on all files in your current directory but it does not recurse through any trees. Perhaps you intended to compare: chflags -R schg /sbin with chflags schg /sbin/* The first of these will set the schg flag on all files and directories in the whole tree rooted at /sbin (including the directory /sbin. The second will affect only the items listed in the /sbin directory not including /sbin itself or any files or directories further down the tree. Malcolm Thanks it makes sense now and yes your right, i wanted to do chflags -R schg /sbin/* . Thank You Alden Louis-Pierre ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: chflags understanding
On Friday 23 April 2004 13:02, Alden Louis-Pierre wrote: > I'm looking through the Handbook to learn how to secure my FreeBSD > 4.9 system. While reading 10.2( > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security-intro.ht >ml ) it makes reference to the chflags command. > Is there a difference between "chflags -R schg /sbin *" and "chflags > schg /sbin *"? > The asterisk '*' in these commands looks rather unlikely. As it stands the first on these: chflags -R schg /sbin * will set schg flags for the directory /sbin and for the whole tree down from there, AND, with the asterisk, all files in your current directory and the whole tree down from there. The second version chflags schg /sbin * will set schg on the directory /sbin, AND on all files in your current directory but it does not recurse through any trees. Perhaps you intended to compare: chflags -R schg /sbin with chflags schg /sbin/* The first of these will set the schg flag on all files and directories in the whole tree rooted at /sbin (including the directory /sbin. The second will affect only the items listed in the /sbin directory not including /sbin itself or any files or directories further down the tree. Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: chflags understanding
On Fri, 2004-04-23 at 09:02, Alden Louis-Pierre wrote: > I'm looking through the Handbook to learn how to secure my FreeBSD > 4.9 system. While reading 10.2( > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security-intro.html > ) it makes reference to the chflags command. > Is there a difference between "chflags -R schg /sbin *" and "chflags > schg /sbin *"? The '-R' flag sets all the files in the /sbin including any files under the /sbin directory tree. Without it it will affect only the files under /sbin > > Thank You > > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"