Re: Publicly accessible directory?



Joyce of Pendle wrote:

Maxwell Lol wrote:
If you and DH are in group 'family"
do
mkdir shared_dir
chgrp family shared_dir
chmod g+rwxs shared_dir

I used this sequence on /etc/ to edit login.defs

Now how do I set /etc/ back to belonging only to the root?

Joyce.


If you were root to be able to change /etc, why didn't you edit the file
as root, instead of giving /etc/ group write permission to the dir or
files? Simply set it back to root ownership:

chown root:root /etc
chmod 755 /etc

Or, on the file itself (if you meant login.defs):

chown root:root /etc/login.defs
chmod 644 /etc/login.defs


--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
.



Relevant Pages

  • Re: Other Web Sites Access to OWA
    ... Edit the index.htm page for the root and add this: ... Let's say I am hosting abc.com. ... to abc.com/exchange that it will be directed to OWA. ...
    (microsoft.public.exchange.admin)
  • Re: Publicly accessible directory?
    ... chmod g+rwxs shared_dir ... I used this sequence on /etc/ to edit login.defs ... Now how do I set /etc/ back to belonging only to the root? ... instead of giving /etc/ group write permission ...
    (comp.os.linux.misc)
  • Re: Possible system breach due to an improper command
    ... As stated in anther thread this is a very silly use of chmod. ... lock you out of your own home directory and will ... try to lock the directoy one level up as well. ... ]Well, the next thing I know I am out of my locked shell and in root, ...
    (comp.unix.admin)
  • Re: Possible system breach due to an improper command
    ... As stated in anther thread this is a very silly use of chmod. ... lock you out of your own home directory and will ... try to lock the directoy one level up as well. ... ]Well, the next thing I know I am out of my locked shell and in root, ...
    (comp.security.misc)
  • Re: A spot of advice needed - OP reports back
    ... latest version and give you a list of progs it can upgrade. ... Do I use chmod to do this? ... You need to be the root use to do this - you did make a not of the root ... a web site dedicated to linux newbies. ...
    (uk.comp.os.linux)