[SOLVED] Different delete permissions on one folder

My friends ask me to run a server for our small neighborhood, for purposes like files share and things like that.
I learned Here that the user permission to delete any file is inherited only from the "father" folder.
As for the files share, I would like that each user will be able to upload his own files, and while any user will be able to read and download any file (read permission only),
only the owner user will have the ability to delete his own files.
At the moment there is main folder with 777 permissions for everyone, and within it each user opened his own directory.
This way when some files exist in the folder of another user you cannot delete his folder/files.
But this is bad for sorting needs, I want that any user who provide installation file will be able to put it in the "Installations" folder...
Most of the users are using ms-smb client to manage their files through my Samba server, and like that when one attempts to delete another-user's file from the main-full-permissions-for-everyone folder he even not receive that Linux warning: "remove write-protected file ‘file_name’? y"
Is there a way to do that on one directory?
I tried to learn about the ext filesystem "flags" just to find some flag to make the file delete-able only by the root, that not a solution.
Sorry for my bad English, not my native language...
Last edited by Florax (2013-01-27 11:29:14)

Thank you all very much,
I will read that all when I'll got the time, but for my purpose the Sticky Bit thing is very much enough.
Since I think it is very useful for multi-user use of the system, why there is not some simple Arch-Wiki about it?
Or maybe there is, but I am no good in searching?

Similar Messages

  • [SOLVED]User Access To Only One Folder .

    Hello ,
    I want to have a kind of user that have access to only one folder and nothing else ?!
    Last edited by arashroshan (2012-06-26 10:03:03)

    arashroshan wrote:
    Thank you for replying , i think i am going to use jailkit .
    tomk and and thesequel , thank you for correcting me !
    You said thanks to tomk, but you didnt read what he said

  • Reading through different file types in one folder

    Basically my problem is this:
    I want to create one .xml file that calls different .xsl stylesheets depending on the file type that I am calling. I have a folder with .jpg, .mpg, and .xml files in it and want the main .xml file to read through the folder and display all the .jpgs in a particular way, all the .mpgs in another way, and reads out the data from the .xml files in another way. So my questions are:
    1. Should I use an .xml file to call the others? (or would I just use html or something)
    2. How do I apply the different stylesheets / display characteristics based on the filetype that is called?
    3. How do I read through the folder and call only the files with certain extensions?
    4. I am also having trouble getting things like XQuery, XPointer, etc. to work, should I be writing these into an .xml file or an html file or what?
    Sorry, I know its a lot of questions, but I'm pretty new at this. Thanks!

    You can get around the problem with the pictures by making smart albums in iPhoto and telling to not include anything that has avi in the filename.
    Since Front Row doesn't currently like video files in playlists, the only real suggestion I can make for that is to drag copies of the videos (can just drag copy them right out of iPhoto into a Finder window) into the ~/Movies folder or a subfolder inside here. That will allow you to browse them alphabetically by selecting the Movies folder from within the Front Row interface.

  • I have a few hundred duplicates in my iPhoto library, but the file sizes are different.  So one is 1.3mb and one is 567kb.  I want to delete the smaller ones, but short of comparing each duplicate, is there a way to do this?

    I have a few hundred duplicates in my iPhoto library, but the file sizes are different.  So one is 1.3mb and one is 567kb.  I want to delete the smaller ones, but short of comparing each duplicate, is there a way to do this?  I've been looking at Duplicate Annhilator but I don't think it can do it.
    Thanks!

    I just ran a test with iPhoto Library Manager, Duplicate Annihilator, iPhoto Duplicate Cleaner, Duplifinder and Photodedupo.  I imported a folder of 5 photos into a test library 3 times, allowing iPhoto to import duplicates.  I then ran the 5 photos thru resizer to reduce their jpeg compression but all other aspects of the file the same.
    None of the duplicate removal apps found set that was reduced in the file resizer. That's probably due to the fact that the file creation date was being used as a criteria and the resized photo would have a different file creation date even though the Image Capture date was the same.
    They all found the 3 regular duplicates and some of them would mark two and leave the 3rd unmarked.  iPhoto Duplicate Cleaner can sort the found duplicates by file size but if the file was edited to get the reduced file size it might not be found as it would have a different file creation/modification date. 
    iPhoto Library Manage was able to find all duplicates and mark them as such if the file names were the same the the filename option was selected.  Otherwise it also missed the modified, resized version.  It allowed one to select the one photo to save before going to work on the library.
    So if a photo has been reduced in image quality or pixel size it will not be considered a duplicate.
    OT

  • How can I keep every single photo from saving to "collections""my photo stream""camera role" and just use one folder? And why do I have to delete the same pictures 4 times? In "collections""myphotostream"camera role""deleted photos" I need ONE FOLDER

    im sick of deleting the same picture 4 separate times, I want to limit everything to one folder and only have to delete one time, how? Why does this have to be so complicated

    Photos you take on your camera are in the Camera Roll and are like the film in a camera.
    Photo Stream is an independent stream of photos from all devices that are logged onto the same iCloud account and that have Photo Stream turned on. Photo Stream photos are kept in the cloud for 30 days or up to 1000 photos, whichever comes first, so unless you have a particular photo you just don't want to stay out there for 30 days, you don't really need to delete Photo Stream Photos. They are temporary. Your device will continue to keep your Photo Stream photos from prior to the 30 day limit, but if you switch Photo Stream off in iCloud and then right back on, the only photos that will re-display in Photo Stream on that device are the ones that remain within the 30 Day/1000 photo parameter.
    Collections is simply a single place which shows all of the photos that you have on your device. You do not need to delete photos from Collections. It is just a single place where you can see the contents of all of your albums.
    Photos in albums that you have created on the device itself are tied to the photos in your Camera Roll, so if you delete them from the Camera Roll, it will tell you that it will also be deleted from an album.
    Albums that you have sync'd from your computer should be removed the same way you got them there - by hooking the device up to a the computer you did the sync with, and un-selecting the album from the Photo profile screen.
    So, really, there are only two places that you need to delete photos - Camera Roll and Photo Stream.
    Cheers,
    GB

  • Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?

    Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?  The cut and paste function is not available and there's no "move to" function.  Am I missing something?  It was so easy with Windows.

    Drag the files, or press Option when pasting them; this accesses the Move To function.
    (124070)

  • I tried to sinc my photos and i ended up deleting off my phone all the pictures.  i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help

    i tried to sinc my photos and i ended up deleting off my phone all the pictures.  i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help
    and on a second problem.  I need to know for sure that my contacts are backed up on my computer

    Create a parent folder on your computer to store the named folders of photos that you want transferred to your iPhone. Under the Photos tab for your iPhone sync preferences with iTunes, select the parent folder. All named folders of photos within will be transferred to your iPhone as separate folders or albums.
    Regarding your 2nd question, this should be easy. Your contacts should be available on your computer with or without an iPhone or any cell phone, which can be lost or stolen.
    Although contacts are included with your iPhone's backup which is updated by iTunes as the first step during the iTunes sync process, not a good idea to depend on this either since the iPhone backup includes a significant amount of other data. Contacts are designed to be synced with a supported address book app on your computer. With Windoze, this can be with Outlook 2003, 2007, or 2010 along with syncing calendar events and notes, or with the address book app used by Outlook Express with XP and by Windows Mail with Vista and Windows 7 called Windows Contacts for syncing contacts only.

  • I'm trying to clean up my mailbox and when I delete an item(s) I get a message that say's "operation could not be completed- file exists. Further, when I do this one message is copied (not deleted) to the trash folder. Can someone help me through this?

    I'm trying to clean my mailbox and when I click on delete or highlight and move to trash I get a message that says "operation could not be completed - file exists. Further, when I select a message or group of messages, one of them is copied (not deleted) to the trash folder. Can someone help me through this?
    Thanks.

    It's a POP account. I decided to clean up my mailbox today after noticing the computer was real slow after USA Today started sending their daily top stories with new graphics. Also before I noticed the problem with mail deletion - two things happened. 1) I updated security sofware as prompted by Apple and 2) downloaded Mackeeper and went throught some preliminary scans but did not buy their package. Thanks forn nstaying with me.

  • I have deleted one folder by mistake....would like to get back that folder.......tell me how

    i have deleted one folder by mistake....would like to get back that folder.......tell me how

     http://windows.microsoft.com/en-us/windows7/recover-lost-or-deleted-files REO

  • The info supplied does not show how to delete more than one bookmark, only folders

    I read the info provided online for deleting more than one bookmark/folder but it doesn't show how for multiple bookmarks. My OS is XP. with updated Firefox version.
    When I go to Bookmarks>Show All Bookmarks, there is no listing of the ind bookmarks, only the folders.
    Whoever used this pc before had lots and lots and I do not want to have to delete them all one-by-one.
    Please advise---

    ''Library List only shows Folders, how do I delete bookmarks''
    Usually one deletes a lot of history items so the techniques were described in the history areas by including some pictures. The techniques work the same for bookmarks.
    You can select '''multiple entries without invoking the bookmark''' for dragging, copying, moving or deleting, (similar to how you can [http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox#Selecting_history_items select multiple browsing history items]) with use of the Ctrl''/Cmd'' key (to add to a selection) & Shift key (to extend a selection) by clicking to the '''left''' of the favicon (webpage icon) in the list to make selection(s). To extend from the last selection made of dis-contiguous entries use Ctrl''/Cmd''+Shift+click. Makes moving several bookmarks from different places to a new location easier as well, and of course for your interest in deleting bookmarks.
    Whether you are selecting from the Side Panel or from the Library List, you generally want to start with a search specifying one or more strings within Titles, url/location, or tags. The search with strings of characters works the same in the Location Bar (before Enter known as the AwesomeBar feature), and in bookmark, history and tab searches.
    Within the Library List you will only see bookmarks by selecting a folder, or by doing a search.
    Articles: (read entire articles but am pointing to specific areas)
    *http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox#Selecting_history_items
    *http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox#Bookmarks_Manager_or_Library_window
    *http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28internal_-_Auto_Complete.29
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.<small>

  • Can't delete from my shared folder

    Hello, I have a shared folder at work. There are a few items nobody uses that can not be deleted when i delete them from the folder. Nobody else uses the folders but I get this message "The operation cannot be completed because you do not have sufficient privileges for some of the items."
    What does this mean?

    There may be some backdoor way into doing that; but I have not really been
    looking into that long, since I don't share my files using the shared folder &
    my own computers with multiple user accounts are not that big an issue.
    Apparently some other users have had issue with trying to change user
    permissions in a system and have rights to previous and now gone user
    files migrate or be moved more easily to the present set of active ones.
    {A way probably exists in the Terminal or other 'super user' mode; that is
    not activated by default & seldom is ever used except to serious things.
    Then, it would deactivated once the one issue was cleared. A business
    owned computer may be a different matter than a personally owned one
    in regard to accessing the deeper levels of the OS to change privileges.}
    Some of this is discussed here: Quick and easy folder sharing in 10.5
    http://www.macworld.com/article/133207/2009/11/105foldersharing.html
    Note the section of the article with the sentence starting:
    "...If you delete a user who still has rights to a shared folder..."
    When the user, whose file you want to delete, is no longer there and/or
    if their account has been deactivated, sometimes it may become neces-
    sary to re-activate or recreate the account to regain privileges to do it.
    And this has been a rub in come instances, where the user's files were
    not removed before the user was removed from the computer.
    Perhaps someone has more insight into this matter and has a simpler
    resolution. There is a path through terminal or super user access; or
    maybe there is a bootup method that ignores users, such as SafeBoot
    where a file could be found then, trashed, then the computer restarted
    normally? {I've not tried that. - And it seems too simple to work...}
    Good luck & happy computing!

  • [SOLVED] Accidentally deleted two directories on a mounted external...

    Is there any way to restore them? I had an external hard drive mounted at /media/extdrv/. On it, I had multiple directories, including:
    /media/extdrv/downloads
    /media/extdrv/movies
    /media/extdrv/music
    /media/extdrv/mukti
    /media/extdrv/paperthin
    /media/extdrv/anime
    I was copying one folder to another using this command:
    sudo sudo cp -R downloads/\[LIME\]\ His\ And\ Her\ Circumstances/ anime/Kare\ Kano
    The "Kare Kano" folder did not exist, which may have caused the problem? Now, when I list the files/directories under /media/extdrv/, I get nothing:
    [mukti@headcrab01 media]$ cd extdrv/
    [mukti@headcrab01 extdrv]$ ls
    [mukti@headcrab01 extdrv]$
    I've heard of many different tools to fix this, but I have never used any of them (ddrescue, extundelete, etc). I didn't realize that that command would cause the deletion of all directories under /media/extdrv, but I suppose I was wrong? Is there anything else I should check before attempting to use one of these recovery tools? Is there a specific tool that might be more suited for my specific issue?
    The external drive is formatted ext4:
    /dev/sda /media/extdrv ext4 defaults,nofail 0 0
    There was well over 300GB of data on the drive, so any help is appreciated!
    Last edited by mukti (2013-09-22 18:44:26)

    It actually looks like I not only entered sudo twice, I ran the command twice (the first time only using sudo once. From my history:
    486 sudo cp -R downloads/\[LIME\]\ His\ And\ Her\ Circumstances/ anime/Kare\ Kano
    487 sudo sudo cp -R downloads/\[LIME\]\ His\ And\ Her\ Circumstances/ anime/Kare\ Kano
    Also, upon further investigation, this was another issue. I checked, and /dev/sda was not mounted, and sda was not listed under /dev. I ran over and found that the external hard drive was powered off (the system/ext hdd are not in the same room/on the same floor as I am). I was able to power it back up, but I'm not sure what would have caused this.
    So I guess I posted this a bit too soon, and should have done some more investigation; however, I am curious as to why the drive would lose power. All other devices on the circuit were still powered on and running. Could the commands I issued have caused this?
    This can be marked as solved, since my "problem" is no longer. Thanks for the help.
    EDIT:
    I should also note, this 'event' has made me realize that I could not afford to lose some of the data on this drive. As a result, I'm going out to buy another as a backup.
    Last edited by mukti (2013-09-22 18:38:59)

  • I cannot fully uninstall iTunes because I am unable to delete the commonfiles\apple folder

    I received error 42404 after updating to itunes 11, and have attempted to follow the instructions at http://support.apple.com/kb/HT1925. However, my Vista will not let me delete the commonfiles\apple folder. How can I delete it?
    The day of iTunes 11's release, I updated my iTunes, then opened up the prgm to take a look at it. I was immediately brought to the attention that the program didn't install correctly (with error 42404), so I uninstalled iTunes and reinstalled it, with the same error coming up. I continued to use iTunes and see if i could ignore the issue, however I discovered I was unable to log into my itunes acount on the store.
    So I followed the isntructions at http://support.apple.com/kb/HT1925 correctly, deleted the remaining files/folders, except I am still unable to delete the C:\Program Files\Common Files\Apple\ folder. I attempt to delete it, it asks me for permission to do so, I say continue, and even after I give it permission to delete the folder, it instantly says to me, "You need permission to perform this action," and it gives me the options to cancel or try again (which immediately brings this same window up again asking me to try again).
    I've done plenty of research for the past two days, from attempting to delete the individual files within this folder via the Command Prompt, using Safe Mode, and many other options, yet nothing works. I've seen many forums advise using a program called "Unlocker," however, anyone googling the program will find that it is offered from a plethora of various sites, and I honestly dont trust programs from these sites.
    Is there ANYTHING anyone knows to do for an issue like this? All I need is that one folder deleted, and all my problems are gone!

    It still didn't work...
    Within this commonfiles\apple folder, there is only one folder, labeled "Internet Services." Within this folder, there are 6 folders, labeled:
    APLZOD.resources
    BookmarkDAV_client.resources
    CoreDAV.resources
    iCloud.resources
    iCloudServices.resources
    ShellStreams.resources
    Within all but CoreDAV and BookmarkDAV_client, there are multiple different folders, all labeled starting with a two letter (acronym I believe, for different languages) then .lproj (for example, a folder is labeled "ar.lproj".
    In each of the folders of APLZOD.resources, there is a file labeled "APLZODlocalized.dll."
    In all of the folders containing the multiple .lproj folders, there are likewise "name"localized.dll files contained.
    In the BookmarkDAV_client and Core DAV folders, they each contain only one file, "Info.plist"
    I attempted to delete all of these files, and still, the FileAssassin could not delete them. I unlocked one of them for instance, and I tried to delete the file myself (thru windows explorer and just clicking delete), and I still had the same issue of coming eventually to the window requesting me to "try again" to have permission.
    What can I do?? I'd like to avoid Unlocker, but if it really is a reliable and SAFE program, and someone knows a SAFE place to download it from, I'd appreciate it very much so!!
    thanks!!

  • Install more than one exe into one folder or into some subfolders of the same folder

    Hi!
    I want to do at least one of the following:
    1. I want to install several exes (built with LV app builder) into one directory because they belong together.
    2. Make several subfolders under the same top level folder aand install exes into each of them.
    The (top level) folder should be the "company" folder. The subfolders are for the applications.
    For example:
    c:\company\app1\app1.exe
    c:\company\app1\app1setup.exe
    c:\company\app2\app2.exe
    etc.
    This may also reside under the "program files" folder.
    If i try to do so, i encounter some problems setting up the build specifications. If i have more than one build spec. for exes i cannot add them to the same folder. At least if they contain the same external files, e.g. dlls.
    If i try to make one installer per exe, i get an error message telling me that the same folder (my "top level folder") already exists in the registry and cannot be added a second time. This is also true if i try to make a new project instead of having several installer build specs in one project.
    I use Labview 2009 (engl.) under Windows Vista (german).
    If anyone has some help for me or encounters similar problems please let me know.
    Holger
    Message Edited by HolgerD on 09-26-2009 10:13 AM
    Solved!
    Go to Solution.

    Hi Holger,
    the build directories should be different for each build, but you can copy the executables into one folder manually (tested successfully in WinXP). For multiple installers, put each installer build in a separate directory, and install all to the same program files subfolder. Works with XP (tested!), so this must be a Vista issue...
    Please build the four specs in attached project and run both installers to the same directory - should be working...
    Best regards,
    Sebastian
    Attachments:
    calc.dll.zip ‏73 KB

  • Permissions in a folder are not applied to new files added by users over shared network

    New files added to a shared folder do not inherit the permissions of the folder but rather retain the permissions of the user. Because the purpose of the folder on the network is to allow multiple users access to all the files (read and write), these new files cannot be accessed and editd by others.Is there a way to have the new files automatically inherit the folder permissons? I am aware of the "Apply to enclosed items " drop-down in the Get Info window but this is not practical given the number of new files that are produced and filed.
    THanks,
    JD

    If it's the folder is on the boot drive then the only way to accomplish this is with a combination of groups and ACL's as far as I know. There may be other ways but this is the one I know.
    You say the folder is on the network but is on the boot disk, how are you setting this up and are the users accessing this all from Mac's? And they all have accounts on this Mac?
    In a nutshell you would setup a group that all the users needing to access the folder belong to and then setup the ACL on the fodder so that all member's of that group will have full permission to whatever is in the folder.
    So first in Users&Groups create a group for this and add all the users who need access.
    The do to the folder and change its group to the group you created and change its mode to 775 (or 770 if you don't want anyone else having even read access on the folder)
    Then enter this
    sudo chmod -R +a "GroupNameCreated  allow delete,chown,list,search,add_file,\
    add_subdirectory,delete_child,file_inherit,directory_inherit"  folderToChange
    Now the weird thing is if you look at files in the folder they will appear to have the normal Unix mode of 644 but anyone in the group will have read, write and delete permission on the items in the folder.
    I suggest you play with this on a test folder and seeing if it meets your needs before changing the working folder.
    Also this will not change anything already in the folder it only applies to newly created files/folders
    regards

Maybe you are looking for