public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Delete /home/shared Samba directory; need better SSH solution!
Date: Wed, 09 Feb 2005 10:04:51 -0800	[thread overview]
Message-ID: <5.1.0.14.1.20050209092740.02f55340@celine> (raw)
In-Reply-To: <010a01c50ebf$79999d60$260aa8c0@lanadmin>

At 10:53 AM 2/9/2005 -0500, Eve Atley wrote:

>We have people remotely SSH into our box from our overseas branch in India,
>and I didn't want to create a home directory for every user at that branch.
>So, I plopped them into /home/shared so they could view our network shares,
>and therefore gain access to the folders for which they had permission
>(having set up groups and put each user into a group). Yesterday, I ended up
>deleting our Samba shares directory (/home/shared) because I was attempting
>to get rid of a user; Linux prompted me if I wanted to get rid of that
>user's files, and I hit ok without thinking, thereby wiping out most of our
>network.
>
>I'm slowly but surely restoring everything, but I'm wondering how to
>approach remote SSH a bit more safely. I was thinking of having 1 SSH user
>only for our users to work with.
>
>Let me know if you require more information. OS is RedHat Linux 9, soon to
>be upgraded to RH Enterprise WS 3.0.


All ssh itself provides you with is a way to connect over an insecure 
network (the Internet) in a way that protects the content of the 
transmissions from being read anyplace other than at the endpoints of the 
connection. All the other security issues are no different from any other 
login mechanism and are, really, matters of on-host security management.

Addressing those issues really is specific to the site and the contents of 
what you are trying to protect, details I wouldn't even suggest you share 
in this public a forum. But that said, I am (and others are) left only able 
to offer generalities in the way of advice.

Having a single ssh user is, in my opinion, a bad idea. It means that you 
have no accountability ... if a problem arises, you don't know who was 
actually logged in at the time. And it means a single password is shared 
among an unknown number of people, making any procedure for password 
protection pretty much nonsense, and making the process of changing the 
password cumbersome.

Were I to try to eal with your setup as I understand it, I'd do something 
like this:

1. For each remote user, set up an individual shell account, with a good 
password. (That is, don't do what your first sentence above says, despite 
its having a superficial simplicity.) Then expect (demand) that each user 
treat his or her userid/password information as confidential company 
information to be protected by whatever standards the company usually uses. 
And set up your system so ssh (including things tunneled through ssh, like 
scp) is the ONLY way a user can connect to the system.

2. Put all these users into a group - I'll call it "india" for now".

3. For the files and directories you want these folks to have write access 
to, make them mode 664 or 774 as appropriate, chgrp them to india, and let 
them rely on group- rather than user-level access. Set these users' umasks 
so files they upload have appropriate permissions.


-
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

  reply	other threads:[~2005-02-09 18:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-29 14:03 USB Flash/Jump Drives-Linux?? Hal MacArgle
2005-01-29 16:08 ` Ray Olszewski
2005-01-29 18:40   ` Jim Nelson
2005-01-29 19:24   ` Hal MacArgle
2005-01-30  3:02     ` Joshua Rogers
2005-01-30  3:48 ` chuck gelm
2005-01-30 15:19   ` Abstract Control Module/Communications Device Class chuck gelm
2005-02-03 21:35   ` USB Flash/Jump Drives-Linux?? Hal MacArgle
2005-02-09 15:53     ` Delete /home/shared Samba directory; need better SSH solution! Eve Atley
2005-02-09 18:04       ` Ray Olszewski [this message]
2005-02-10 20:38         ` Eve Atley
2005-02-10 21:44           ` Ray Olszewski
2005-02-12  1:00             ` Linux Redhat Enterprise 3.0 = no support for firewire HD? Eve Atley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.1.20050209092740.02f55340@celine \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox