LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2008, 08:44 AM   #1
SchwipSchwap
Member
 
Registered: Aug 2002
Distribution: Suse8.0, Mandrake, Knoppix
Posts: 92

Rep: Reputation: 15
Question scponly set user rights


Hi!

How can i set the user rights with scponly?

to allow for example only upload files to home directory and not list or

download the files?

Thx For help!

Schwipschwap
 
Old 09-13-2008, 05:00 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I don't have a scponly installation on hand to test this out with, but here's some thoughts...

Code:
> mkdir fun-test

> chmod 300 fun-test/

> touch fun-test/GOT-IN

> ls fun-test/
ls: : Permission denied

> ls -l fun-test/
total 0
ls: : Permission denied

> echo 'boo' > fun-test/GOT-IN

> cat fun-test/GOT-IN
boo
So, w + x permissions for the user on the directory sort of satisfy what you're looking for. Unfortunately if a user knew a file name I suspect he could still download it (since in this contrived test above, the cat worked).

I don't know of any ssh facility that would get you the behavior you're looking for. (But if I were sufficiently motivated, that's where I'd begin -- reading OpenSSH documentation.)
 
Old 09-13-2008, 11:38 PM   #3
SchwipSchwap
Member
 
Registered: Aug 2002
Distribution: Suse8.0, Mandrake, Knoppix
Posts: 92

Original Poster
Rep: Reputation: 15
Thx for Reply,

tryed chmod allready. My Problem is the user must be allowed to create new subdirectorys and those are readeable then.

scponly provides a shell with commands like 'ls' in it. I will try to delete the unwanted command.

Thought there is any configuration file like a ftp server offers to set user rights.

Is there a other way to grand many people a encrypted file transfer which is stable and dosnt allow the people to see or download the files?
 
Old 09-14-2008, 03:26 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Perhaps ftp over SSL. (I recommend vsftpd.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user rights fmpfmpf Linux - Newbie 1 05-08-2008 06:41 AM
user rights cj4331 Linux - Newbie 6 02-20-2008 10:43 PM
User rights metallica1973 Linux - Software 8 07-29-2006 11:51 AM
Squid proxy with user authentication and user rights duvanhorn Linux - Networking 0 08-07-2003 03:40 AM
Set rights to a file for different users? Scratchmaster Linux - Security 2 04-30-2002 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration