Sponsored Content
Full Discussion: Locking Down SFTP
Operating Systems Linux Red Hat Locking Down SFTP Post 302539798 by landossa on Monday 18th of July 2011 09:54:55 PM
Old 07-18-2011
Java Locking Down SFTP

Hi List,

I'm sure this has been done before and there must be several ways to skin the cat on this topic. What I am trying to achieve is set up user accounts for use with SFTP based on the standard OpenSSH protocol. And I want to be able to lock them down so that they cannot browse outside of their own home directories and can only write to their home directories but cannot read from them.

Using CentOS 6.

What is the best solution? I'd be interested in hearing any solutions.


thanks,

Last edited by landossa; 07-18-2011 at 11:06 PM..
 

10 More Discussions You Might Find Interesting

1. SCO

System Locking Up

I have a server that is locking up pretty frequently for serveral months. I have about 4 dumb terminals running off this server and it appears that when the system is about to lock up it starts to run really slow on one of the terminals and then the rest follow suit until it just craps out. We... (1 Reply)
Discussion started by: mcrawfo4
1 Replies

2. UNIX for Advanced & Expert Users

File Locking

Hi, Does anyone know what happens when two processes are simultaneously trying to write to a single file in UNIX (AIX)? Cheers (1 Reply)
Discussion started by: penfold
1 Replies

3. UNIX for Dummies Questions & Answers

locking problem

Hi... after unlock my computer from lock, all telnet windows which i opened previously are closing automaticaly... i hope u understand....plz give solution... (1 Reply)
Discussion started by: venkatramana
1 Replies

4. UNIX for Dummies Questions & Answers

Locking in Unix?

Hi all! I want to know about Mapping Filesystems to Multiprocessor Systems.( lock ...) and Traditional UNIX Locking Primitives. Can you help me? (1 Reply)
Discussion started by: nguoidoius
1 Replies

5. Linux

Locking around kmem_cache_destroy

Hi There, I want to make sure that kmem_cache_alloc is not called concurrently with kmem_cache_destroy on module exit and I want be able to use GFP_KERNEL for the kmem_cache_alloc calls. Would a read/write lock be good fro this purpose or is there another method I should be using? Regards,... (0 Replies)
Discussion started by: Brendan Kennedy
0 Replies

6. UNIX for Dummies Questions & Answers

file locking

how do i implement file locking in unix? example if i want to update a file, i would like to use file locking. how do i implement it? i am using shell script thanks (3 Replies)
Discussion started by: yang
3 Replies

7. UNIX for Dummies Questions & Answers

how to do file locking?

how to ensure all files are being locked while updateing some files? example when i want to update the password and shadow file in unix. how do i implement file locking?? please advice thanks (2 Replies)
Discussion started by: yang
2 Replies

8. UNIX for Advanced & Expert Users

Locking issue

Hi everyone, I have got a requirement that, i need to check a specific folder,say /test/lock/ for few specific files, say *lock*, whether it has been locked or not.If any one of it is locked than i need to delete that file after a specific time, say after 10 minutes. I never have worked on... (4 Replies)
Discussion started by: Susant
4 Replies

9. UNIX for Advanced & Expert Users

File locking

i am working on a device runnin on linux....i have configured the samba server in the device such that my windows PC can access a shared folder in the device. Also in the device i am runnin some programs which access the files in this shared folder. What i want to know is whether there is any way i... (1 Reply)
Discussion started by: abhinx
1 Replies

10. Shell Programming and Scripting

File locking (Unix/Linux) & sftp

Hi all, Can anyone help ...on how to ensure that a file is locked . thanks & regards, Soodoo ---------------------------------------- Problem description: - We usually use the mv command in scripts to make sure that a file is complete and not being written to by another process. ... (1 Reply)
Discussion started by: soodoo
1 Replies
lnewusers(8)						      System Manager's Manual						      lnewusers(8)

NAME
lnewusers - Create new user accounts SYNOPSIS
lnewusers [OPTION]... DESCRIPTION
Creates new user accounts using data read from standard input. The input data consits of lines, each line has 7 colon-separated fields: User Name Plaintext Password User ID lnewusers refuses to create users with user ID 0 (the root user ID). Group If this field is a valid group ID, it is interpreted as a group ID, otherwise as a group name. If the field is empty, a group name equal to user name is used. If the specified group does not exist, it is automatically created. If the group is specified with a group ID, the created group has group name equal to the user name. GECOS The GECOS field is traditionally used to store user's real name and other information. Home Directory If this field is empty, a default specified by libuser configuration, or /home/username if libuser configuration does not specify a default, is used. Login Shell If this field is empty, a default specified by libuser configuration is used. Errors in user specifications are reported and processing continues on the next line. OPTIONS
-f, --file=file Read account data from file instead of standard input. -i, --interactive Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration. -M, --nocreatehome Don't create home directories. -n, --nocreatemail Don't create mail spool files. EXIT STATUS
The exit status is 0 on success, nonzero on fatal error. Errors in user specifications are not reflected in the exit status. libuser Jan 12 2005 lnewusers(8)
All times are GMT -4. The time now is 11:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy