LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-19-2003, 07: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, 07:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 07: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, 01:55 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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

Cheers,
Tink
 
  


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

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

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