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 03-19-2003, 08:17 PM   #1
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Rep: Reputation: 15
::Setting user permissions:: ::Newbie question::


Okay, how do I set a certain user on my linux machine to only have read and write (not delete) access to one certain folder?

RH 8.0

-Thanks Andy
 
Old 03-19-2003, 08:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hmmm ...

You can't ... write is equivalent to delete in this
case. However, you can set the sticky bit on
the directory which means that only the user who
wrote a file to that directory (and root, of course)
can delete or modify it ...

I mean ... think of it logically: if you give the user
permission to write to a file, and he decides to
write it back with ZERO bytes length ... what's the
point of not allowing him to delete it? ;)

Cheers,
Tink
 
Old 03-19-2003, 08:47 PM   #3
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
-Andy-

No, you see I want to use Samba as a login for my website... Like a FTP server... So they can upload stuff into a folder. But I don't want them to be able to delete stuff that other people have uploaded
 
Old 03-20-2003, 02:55 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Read my answer again, then :)

chmod +t </foo/bar/shared_directory>
should do the trick ...

Cheers,
Tink
 
  


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
newbie needs help setting folder permissions for new users J1015512 Ubuntu 1 10-15-2005 02:57 AM
Setting user permissions PeteWieland Linux - Newbie 2 04-16-2005 07:35 AM
Setting User Permissions macgyver007 Linux - Newbie 3 04-12-2005 11:21 AM
Setting user network permissions beforemath Linux - Networking 2 02-28-2005 04:53 PM
Setting default permissions for user loadedmind Slackware 3 11-05-2003 04:24 PM


All times are GMT -5. The time now is 02:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration