LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-06-2009, 10:06 AM   #1
duzap
LQ Newbie
 
Registered: Jun 2008
Posts: 25

Rep: Reputation: 15
How do I limit permissions for specific user (ProFTPD)


Hello,
I would like to limit a specific user so he'll only have WRITE access.
He won't be able to delete, read, create etc... nothing except WRITE.

How can I do that? thanks.
 
Old 10-06-2009, 10:07 AM   #2
SethsdadtheLinuxer
Member
 
Registered: Jun 2007
Posts: 152

Rep: Reputation: 37
umask should do this
http://www.proftpd.org/docs/howto/index.html
 
Old 10-06-2009, 11:11 AM   #3
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 153

Rep: Reputation: 43
I think you should clarify your request just a bit more.
Quote:
I would like to limit a specific user so he'll only have WRITE access.
WRITE access to what? To a shared folder, a specific file, his own documents?
Quote:
He won't be able to delete, read, create etc... nothing except WRITE.
I can understand wanting to restrict his ability to delete stuff (whatever that stuff might be,) but delete is a function of write (you are writing nothing in place of what was there, basicly.) Also, how is he to write anything if he can't even read the contents of it (this includes folders, not just files.) Finally, write and create are pretty much the same thing. To create a file in a folder, you need write permissions in that folder.

Help us out. Be a bit more specific on what it is you are trying to accomplish. List folders and whatnot so we know what advice to provide.
 
Old 10-06-2009, 11:30 AM   #4
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by duzap View Post
Hello,
I would like to limit a specific user so he'll only have WRITE access.
He won't be able to delete, read, create etc... nothing except WRITE.

How can I do that? thanks.
For a file, it's done like this:

Code:
$ chmod u-rx+w filename
-- and --

Code:
$ man chmod
The above command allows the owner only write access to "filename", no reading, no executing. But this remedy shouldn't be applied until you understand the implications -- the file's owner can still destroy all the files it applies to by erasing their contents. And the owner has the right to change the permissions as well.

So we need more information. Be specific -- what do you want again?
 
Old 10-07-2009, 03:36 PM   #5
duzap
LQ Newbie
 
Registered: Jun 2008
Posts: 25

Original Poster
Rep: Reputation: 15
I would like to limit a user folder
for example if I have created a user using 'adduser USER'
so I will have a directory /home/USER/
then if someone will login to ftp://USER@127.0.0.1:21 I want that he will have WRITE access only.
 
Old 10-15-2009, 03:14 PM   #6
duzap
LQ Newbie
 
Registered: Jun 2008
Posts: 25

Original Poster
Rep: Reputation: 15
hi there?
 
Old 10-15-2009, 03:54 PM   #7
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
You have to enable Linux ACL framework, it is disabled by default (but present). After enabling it, you will be able to have user specific permissions set.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
limit specific proces to a specific user Tux-Slack Linux - Software 3 02-23-2007 11:38 PM
proftpd user permissions harleys Linux - Server 3 12-01-2006 11:38 AM
proftpd allow user to specific folder GUIPenguin Linux - General 4 05-18-2006 06:41 PM
Proftpd user permissions powadha Linux - Software 1 09-21-2005 01:18 PM
proftpd - limit user browsing to there dir only bkeating Linux - Software 1 12-05-2002 02:07 AM

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

All times are GMT -5. The time now is 01:53 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