- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SFTP for multiple users
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 05:47 AM
тАО07-09-2009 05:47 AM
Re: SFTP for multiple users
My idea would be to define the 1:18 to push the file, rather then have users come and get it. That way they can't come back and say "I can't get in, I am having problems" thing about the social engineering aspects a bit.
Is the "filename" going to be constant or variable?
I would check for the exist of the file to transfer 1st.
cd sourcefolder
for filename in `ls`
do
if [ -f "$filename" ]
then
DEFINE SCP process HERE:
for user in `cat USERFILE`
do
scp -b $filename $user@remoteserver:/home/$user/
done
else
exit
fi
make a list of the users in a column file
USERFILE
user1
user2
user3
...
user18
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 06:01 PM
тАО07-09-2009 06:01 PM
Re: SFTP for multiple users
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2009 03:45 AM
тАО07-10-2009 03:45 AM
Re: SFTP for multiple users
> I cannot use ssh keys...so that option is off the table.
Why is that? Secure Shell is a product that should be installed when a server is first installed. SFTP/SCP using public keys is simple to setup.
> I do have the script for one user...i am trying to adapt it to fit 18 users.
If each user runs the script under their unique login name, then either ${LOGNAME} or $(whoami) provides that name. The script could simply use that if it needs it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 03:40 AM
тАО07-13-2009 03:40 AM
Re: SFTP for multiple users
It's in clear text... Public keys are alot better for this particular thing. And I believe it's not a problem to just /bin/false (in /etc/passwd) the login shell and still be able to use sftp (should atleast work anyway) or scp.
It's just my 2 cents, and as JRF and some others said... still don't really get what you actually want to do.
I figured out so far that you wan't 18 users to be able to move files throu SFTP to a server which they all login with only a specific user?
Best regards
Fredrik Eriksson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 07:46 AM
тАО07-13-2009 07:46 AM
Re: SFTP for multiple users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 08:45 AM
тАО07-13-2009 08:45 AM
Re: SFTP for multiple users
> I am closing it as it is too difficult to put all the environment constraints in here.
That's a shame...
> Thanks to all those who replied.
Please read:
http://forums13.itrc.hp.com/service/forums/helptips.do?#28
...it is a way of saying "thanks" and assigning value (of which there must be some, proportional to the quality of your question) to the answers you received...
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 10:36 AM
тАО07-13-2009 10:36 AM
Re: SFTP for multiple users
that's too bad. if you'd been able willing to describe accurately what the intended goal was, you'd have probably gotten several useful replies.
unfortunately, not being able to do so may also mean that the actual problem to be solved is "ill-defined". if so, trying to develop a solution may still be daunting
- « Previous
-
- 1
- 2
- Next »