[SOLVED] FSTAB and File Permissions

Hi Guru's
  I'm a new Arch user migrating from Ubuntu. 
  I have one hard drive partitioned as follows:
     SDA1     NTFS
     SDA2     / ext3
     SDA3     / swap
     SDA4     NTFS
   I also have a semi permanent USB Hard Drive and various other USB devices which seem to be mounting fine under autofs. When / if, I solve my fstab problem, I will look into Udev to  give these devices static names.
  My problem is that no matter what I try, I cannot make the two NTFS drives accessible by a normal user (me).  The following is from my current fstab file:
                /dev/sda1 /mnt/sda1 ntfs  rw,user,auto,uid=1000,gid=100,sync,umask=000     # my uid and the users group 
               /dev/sda4 /mnt/sda4  ntfs  rw,user,auto,uid=1000,gid=100,sync,umask=000
   This is one of dozens of combinations I have tried based on  research and "RTFM".   I just  keep getting more confused.  The directory entries show me as the owner, rw permissions and belonging to the user group, the only problem is that I can not write to those partitions as a normal user.
  Any suggestions would be greatly appreciated.
  Any suggestions for links that tie in how fstab, autofs, udev and hal work together.  I have seen links on all of them, but would like to see a brief overview on how they work together.  As you can see, I'm one of those linux noobs. 
  Thanks
  Larry
Last edited by ljshap (2008-05-27 11:04:44)

Hi luca,
  Thanks for the link.  I made the following changes:
   /dev/sda1  /mnt/sda1  ntfs-3g  users,noauto,uid=1000,gid=100,fmask=0113,dmask=0002,locale=en_PH.utf8  0 0
   /dev/sda4  /mnt/sda4   ntfs-3g  users,uid=1000,gid=100,fmask=0113,dmask=0002,locale=en_PH.utf8         0 0
   Except for the locale, its working great.  I still have to mount sda1 as root, which is probably a good idea for the other OSes partition.  If I change it to auto it does mount automatically but thats flirting with danger 
   On to Udev
  Thanks Again
  Larry

Similar Messages

  • Image Capture from iPhone to OS X and File Permissions

    Hello.  I'm running Lion 10.7.3 and have an iPhone 4S and iPad 2.  When I use the Image Capture app to transfer pictures and videos from my devices to OS X it works great with the exception of one problem.  Every file that it copies over ends up with permissions of:
    (Me): Read & Write
    everyone: No Access
    This is problematic because when my wife is logged into her profile or anyone else tries to view these files via shared folders, they can't see them.  I'm putting them into a folder I created on "Macintosh HD".  The folder that they are in has permission of:
    (Me): Read & Write
    wheel: Read only
    everyone: Read only
    Each time I import I suppose I could drop into Terminal and run a command to fix the issues but there must be a better way.
    Any ideas?  Thank you in advance.

    Got a solution using Automator.
    Create a workflow like:
    This is an Image Capture Plugin. When you open Automator select Image Capture as the type of workflow and select these two actions.
    Copy Finder Items will take the image from Image Capture and copy to your disk. Select the folder you want the image to go to in the To: pulldown. You should select the /Users/Shared folder and any subfolder you wish. I made a folder named Images.
    In the second action make sure Pass Input: is set to as arguments and then add the chmod 644
    Then exit Automator giving the workflow a name. In Image Capture you should see the workflow you just created
    in the Import To: pulldown. Select it. Now when you import the fiels wil be copied to the folder you specified and the permissions will be set to 644 rw for you r for everyone else.
    good luck. post back if you have any questions.
    (and this is in the Lion list so my question about Aperture above is meaningless! )

  • Set default directory and file permissions

    I'm trying to use setfacl to set the default permissions for directories and files but I get an error saying "sudo: setfacl: command not found." What I am trying to do is share a specific directory on a local external drive connected by Thunderbolt. Everyone in the group has access to the drive and can view all the files but once a new file is created, the group permissions are not updated. Here is an example of two PDF file. The one created by userA only has permissions for that user where the file created by userB allows all users to open and modity the file.
    -rw-------   1 userA    staff   1988176 Feb 13 15:09 TestFile01.pdf
    -rwxr-----+  1 userB  staff   1827102 Feb 13 15:05 TestFile02.pdf
    0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity
    I can manually update the permissions through the Get Info window but this requires me to reset permissions every time a person saves a new file to the drive. There needs to be a way to do this automatically.
    Here is what I tried but the setfacl command is not supported.
    sudo setfacl -Rdm g:GroupName:rwx /DirectoryPath

    Thanks Frank. I have an externat drive connected to my Mac via Thunderbolt. On this drive I have a specific directory that I'm shairing with Mac and PC users. I've created a group on the network to limit access to this directory to specific users. That works perfectly. The issue I'm having is when one of these users creates a new file in this directory or any of it's subdirectories, no one has permission to open or edit the file. Right now I'm using Get Info to modify the permissions of the folder and all enclosed items. When I check the permissions of the files I've "corrected" I notice this extra imformation "0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity." This is not included when I check the permissions of items saved by other uses in the group.
    So my question is how do I set the default permissions for this directory so every new file and directory will have the correct permissions to allow anyone in this group full access to open and modify every file?
    Thanks for your help!!!!

  • BranchCache - multiple domains and file permissions

    I have been researching BranchCache and looking into its feasibility given my requirements and constraints.
    I am considering replacing servers in branch offices with a single BranchCache server [per branch] in 'hosted' mode.
    1. It has been suggested that each hosting server can only host files from content servers in the same domain as the caching/hosting server. Is this correct? For jurisdictional purposes, we have a 'shared, global' forest but also 'local, jurisdictional'
    forests. Each branch needs to access data which resides in either/several/all of these forests.
    2. A simpler but related question - how are file permissions adhered to? Are the NTFS perms simply included as metadata? How does the hosting server authorise the requesting client access to the file at the point of request? Does the content server provide
    the authorisation instead and hence client and content server must be in the same domain?
    I'm keen to pursue this technology further but suspect it has limitations which mean it is not feasible within my environment.
    Thanks,
    neil
    Neil Ruston

    Hi Neil -
    I forwarded your questions to the BranchCache team, and this is their response:
    "All of the entities in the BranchCache system can be on different domains and BranchCache will work just fine.  It’s ok to have content servers and hosted cache servers on different domains or on no domain at all.  The client and server
    just need to be able to communicate to get BranchCache working.
    "As far as permissions go, clients in the branch office need to be able to download hashes from the remote file/web server to use BranchCache.  The file or web server authenticates and authorizes the client using whatever means it would if BranchCache
    were not in the picture.  Once the client is granted permission, it can retrieve the hashes and pull from the local cache.  Permissions are not embedded in the hashes.  Ownership of the hashes is all a client needs to download from the cache. 
    Hashes are a substitute for content and are kept secure the same way content is."
    Thanks -
    James McIllece

  • Shell script, automator and file permissions

    We have an environment where, that when a user creates a folder on a network vol, it is owned by them and no one else has access to it. They then place a folder structure from there local HD into that folder they just created on the server. You would think a simple get info window with the user changing the permissions to include all would actually change all the file permissions in the enclosed folder, but it doesn't. I have a simple script written in automator using /bin/bash that is supposed to change the permissions in every folder and file to rw for all (user, group and everyone). It doesn't seem to be working correctly all the time for a few users.
    for f in "$@"
    do
    chmod -R 777 "$f"
    done
    I have tried this as well
    for f in "$@"
    do
    chmod -R a+rw "$f"
    done
    But that should be pretty much the same thing.
    Something i have noticed is the users with the most problem are running 10.4.11, while the script was written in 10.5. Also the users that are having the problem dont seem to have the same get info window as the rest of the 10.4.11 users, it very closely resembles 10.5, with some minor differences. It seems they are missing the groups or something. This might be more or less than an issue than I realize.
    http://picasaweb.google.com/tiemmothi/UserPermissions?feat=directlink
    the 10.4 window in question is "the offender" and
    "Mine" is 10.5

    *Access Control List* entries are in addition to the regular POSIX permissions. They are not required, but add finer levels of access control. Setting the regular permissions to read/write for everyone should work unless there are ACL entries which allow additional access - you can see ACL entries and extended attributes with/bin/ls -le@d /path/to/some/folder
    An inherited ACL entry to allow everyone read/write access would look something likechmod -R +a "everyone allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,chown,file_inherit,directoryinherit" /path/to/some/folderA users */Public/Drop Box* folder has similar entries.

  • DFS Replication and File permissions

    Before the problem here is a simple description of my setup
    Two File servers, Each have a folder in D: that is setup to replicate using Replication Group via DFS.
    All files/folders are replicated perfectly from server A to Server B. When folder/files permissions are checked on both Server A and B they are also perfectly replicated.
    Here is the problem.
    We have a user User1 who is given modify/read/write permissions on a folder Folder1 on Server A. Folder1 replicates perfectly on Server B and all permissions are also replicated and can be seen on Folder1 in Server B.
    When User1 opens file share on Server A he has his assigned permissions to work ok. But when he opens the file share from Server B he is unable to Modify Read or write anything inside Folder1.
    At present End users are instructed to use Server A to use the file shares, which are then replicated to Server B as a backup.
    Please help.
    Also share permissions are also same on both servers.

    So User1 cannot edit files on ServerB while both NTFS permissions and Share permissions are the same on serverA and serverB? Please recheck both permissions specifically if any user group included with denied permission.
    A possible workaround is to create a new folder on ServerB, move files from the old folder into it, delete the old folder and rename the new folder to the old name. Then connect as DFS target to replace the old one to see if issue still exists. 
    If you have any feedback on our support, please send to [email protected]

  • Copy usernames and file permissions from old workgroup to new Active Directory

    Hi,
    I have a Windows Server 2003 R2 with about 60 users, 100 shared folders and 5000 subfolders. Each folder has share and protection permissions. Each subfolder has protection permissions. No active directory.
    I need to install Windows Server 2012 R2 (as Primary Domain Controller) and re-create
    the same users (which can have different guid but with the same username as the old server)
    the same shared folders, with the same permission as the old server granted to the users
    the same subfolders, with the same permission as the old server granted to the users
     all under Active Directory.
    Is there a way to automate these steps?
    Thanks!

    Look in script repository for scripts that export local users and groups.
    You will have to learn how these two systems work and develop a script / method for translating between the two systems.  It is very dependent on what has been don on old system.  Using USMT and MDT would be the best. 
    Post in the deployment forum for instructions on how to use the MDT to migrate users in a batch.  You would start by adding the 2003 server to the 2012 domain and then the MDT can be customized to do the move.
    https://technet.microsoft.com/en-us/windows/dn475741.aspx?f=255&MSPPError=-2147217396
    https://social.technet.microsoft.com/Forums/en-US/home?forum=mdt
    ¯\_(ツ)_/¯

  • [Solved] Problem with file permissions for a group

    I'm working on a simple Apache HTTP server just to get a small education in proper unix work.
    To save myself sudoing everything (and generally because it seems the proper way to use unix), I'm trying to give my user control over the /srv directory. So I ran:
    - `sudo groupadd srvadmin` to create a group called srvadmin
    - `sudo chown -R :srvadmin /srv` to change the group-owner of /srv to srvadmin (and all files inside it)
    - `sudo chmod -vR g+w /srv` to give /srv and all its files group write permission
    - `sudo gpasswd -a <me> srvadmin` to add my user to the srvadmin group
    But I still can't create or edit files in /srv
    "ls -l / | grep srv" gives:
    drwxrwxr-x 4 root srvadmin 4096 Dec 19 17:44 srv
    all the files and directories inside /srv also have group write permissions and are owned by user "root" and group "srvadmin"
    "cat /etc/group | grep srv" gives:
    srvadmin:x:1000:<me>
    However, possibly herein lies a clue:
    "id" gives:
    uid=1000(<me>) gid=100(users) groups=100(users),7(lp),10(wheel),50(games),91(video),92(audio),93(optical),95(storage),96(scanner),98(power)
    That is, "id" doesn't tell me I'm in the srvadmin group.
    It seems like there's an important concept about groups and permissions that I'm not getting, but reading several man and wiki pages hasn't enlightened me. Could anyone suggest what I'm missing?
    Thanks.
    Last edited by bjackman (2012-01-15 20:43:09)

    fsckd wrote:
    bjackman wrote:Edit: I'm guessing only mods can put [Solved] tags in a title?
    No, our job is to tell you to do it yourself: https://wiki.archlinux.org/index.php/Fo … ow_to_Post (second to last bullet)
    Ok, this is pretty embarrassing given the parallels with the topic of this thread, but I coudn't edit the title (which is the reason for my earlier remark; I assumed I didn't have permission)!
    The text box was un-editable (not "disabled", I just couldn't edit the text in it). I managed to change it in the end by deleting all the text and typing a new title. I think it may have been just because the title was at the exact character limit.

  • Time Machine and File Permissions

    'Twere I to rate this question's technicality on a scale of 1 through 10, it would rate 8. Just warning you. Unix people will be especially useful for this.
    Okay, so, before the problems started, my hard drive had three partitions. One for OS X, one for file storage for Ubuntu Linux, and one called the "Swap" partition, which somehow relates to Ubuntu (the Ubuntu installer put it there, I've no idea what it's for). Here's a makeshift diagram of what my partition map used to be:
    I ran out of space in my OS X partition. You see, I've recently had the fortune to obtain some rather fantastic software. The downside is that the software (and it's files) take up roughly 53GB. I won't trouble with you what it actually is (though it should have dawned on some people by now). Between OS X and Ubuntu Linux, OS X prevailed. As far as I'm concerned, Linux will have to wait 'till I have a larger hard drive.
    So, I fired up Disk Utility, and tried to remove the two Linux partitions. It told me it was "Preparing to erase [insert Linux partition name]". It told me that for an hour. After one hour, I said screw it, I'll do this the "hard" way.
    My initial plan was to back up my data, and completely reformat my drive, reinstall Leopard, and have it restore from my Time Machine backup. Now, my external drive is not big enough to hold a complete system-wide backup. I had to leave some stuff out. Here's the list of exclusions, taken directly from the back up logs:
    Excluding System files: 16.3 GB (242143 items)
    Excluding /Developer: 0 bytes (1 items)
    Excluding /Users/Audacitor/Downloads: 7.9 GB (18 items)
    Excluding /Applications/Creative Suite 3: 3.2 GB (13214 items)
    Excluding /Applications/Disk Images/Macromedia: 240.5 MB (4 items)
    Excluding /Applications/Utilities: 484.2 MB (111 items)
    Excluding /Users/Audacitor/.Trash: 97.3 MB (2142 items)
    Excluding /System: 108.2 MB (5874 items)
    Excluding /Users/Audacitor/Library/Calendars/Calendar Cache: 144 KB (1 items)
    Excluding /Users/Audacitor/Library/Safari/WebpageIcons.db: 52 KB (1 items)
    Excluding /Users/Audacitor/Library/Mail/Envelope Index: 680 KB (1 items)
    Excluding /Users/Audacitor/Library/Icons/WebpageIcons.db: 20 KB (1 items)
    I am uncertain as to why it excluded those last four entries. I didn't ask them to be excluded, so I assumed that was something Time Machine does automatically.
    The backup worked normally, or so it seemed. After about a half hour, it told me it was done. I hastily (read; stupidly) unplugged the drive and prepared to reformat my drive. So excited was I to reach my new software, that I made the utter and completely foolish move of not double checking that everything I needed was backed up. If I had, I might never have this problem, and even if this problem were destined to happen, I could have at least saved my Pictures folder (fortunately, most of it's contents are safely residing on my iPod).
    So, I wiped my drive. Specifically, I booted into my Leopard Install DVD, and went for the Erase and Install option. The install commenced and finished without a hitch. I brought my "new" computer up, enjoyed the theatrics of the intro movie and started running through the setup. I came to the step where it asks if I want to transfer files from another Mac, from another volume on my Mac, from a Time Machine backup, or not at all. I of course clicked for a Time Machine back up. The first sign of trouble was that my backup didn't show up (despite having my external plugged in). I felt a pang of fear, but it didn't worry me too much, and I thought to myself that I'd just use Migration Assistant later on (the Leopard setup sequence specifically stated I could do this if I so wished).
    So I went straight to my desktop and fired up Migration Assistant, and went through the steps till it asked me to select a Time Machine backup. But there were none to select from. I waited a full minute, my fear growing steadily to terror. Finally, I realized that my data was gone, and flipped out. My inner geek, which was screaming at me to calm down and look inside my external, was shackled and thrown into a tiny corner of my now completely panicked mind. This lasted for roughly two minutes. After regaining myself, and opened my external. It contained one folder named Backups.backupdb. I opened it, and inside I found Neomiranda (Neomiranda is the name I gave my computer). So far so good. Inside the folder of Neomiranda, I found 2008-02-20-060526.inProgress. Another 30 seconds of flipping out over the idea of .inProgress. After awhile, I had the sense to right click on it, and hit the "Show Package Contents" option.
    Inside were three folders, with three corresponding log files. I quickly realized that each one was a backup. The first two were empty, which I anticipated. Those were my two attempts while figuring out what to exclude, so I could get a backup to fit on my external. The third contained another Neomiranda folder, which contained all my data. Everything except my Pictures folder was there.
    So, I went back and forth, manually restoring my data. When I'd finished, I started up a few apps to check that everything worked. Not everything worked. Mail wouldn't even get a bounce from the dock, Firefox told me there was a copy of itself already running, and iTunes complained that I had either a locked disk or insufficient permissions. Acting on iTunes' advice, I set out comparing the permissions of various folders I'd copied to the permissions of their equivalents on another, fully functional, system. Everything checked out. Nothing was locked, and everything had the correct permissions. I fired up Disk Utility and had it a run a permissions repair. It spat out a great deal of stuff that it apparently found wrong, and apparently fixed, but ultimately, it had no effect.
    I cannot find anything wrong with any permissions, but I've got a feeling that's where the problem is. Why? Because any time I want to do anything to a folder I've copied, or anything inside a folder I've copied, it wants my admin password. Despite no apparent differences in permissions between folders I don't need a password for and between folders I do need a password for, I need a password for folders I have copied from my backup.
    I've not looked into file ownership, as I couldn't find a way to even find out who a file belongs to, much less actually change ownership to anything. If I end having to use chown at a bash, fine with me, but I'm not a Unix man. I'll still need help with it (though I do know how to use the man command).

    Same problem and for months now. I haven't been able to find a solution, but I suspect that's because I don't know exactly what's wrong.

  • [SOLVED] ssh/sshfs file permissions messed up on remote virtual server

    Hello,
    i am quite ok with linux these days, but all things network are still hard to grasp...
    here's the problem:
    recently i got some space on a friends virtual server (ubuntu 10.04).
    i started playing around there, mostly connecting with sshfs.
    then i ran into the problem that some files can't be deleted although i'm the one who copied them over.
    we figured out it's about user and group id's and my friend gave me group write permissions:
    chmod -R w+g /home/<myuser>
    i am quoting him here. nb, he's a web developer but not a linux user.
    however, it has happened again (can't delete some files) and before asking him for help i'd like to figure out what is actually going on.
    and maybe i can fix it myself.
    i am logging into my serverspace manually as user.
    here's my ~/.ssh/config:
    Host <me>
    HostName <host.com>
    Port <nnnnn>
    User <me>
    Compression yes
    AddressFamily inet
    i am still entering the password every time since i have not yet figured out how to get the keys working.
    here's how i start sshfs:
    sshfs -C -o idmap=user -o uid=<nnnn> -o gid=<nnn> -o sshfs_debug -o follow_symlinks -p <nnnnn> <me>@<host.com>:/home/<me> /home/<somedir>
    there's been many changes to that line, esp. the idmap, uid and gid options.
    now if i make a long ls on the remote machine:
    ~$ ll
    total 32
    drwxrwsr-t 3 <me> www-data 4096 Nov 23 09:42 ./
    drwxr-xr-x 15 root root 4096 Oct 29 04:21 ../
    -rw--wS--- 1 <me> users 4156 Nov 23 10:04 .bash_history
    -rwSrwSr-- 1 <me> www-data 220 Oct 25 08:08 .bash_logout
    -rwSrwSr-- 1 <me> www-data 3019 Oct 27 12:38 .bashrc
    drwx-wS--T 2 <me> www-data 4096 Oct 25 08:16 .cache/
    -rwxrwxr-x 1 <me> users 675 Nov 23 09:42 .profile*
    lrwxrwxrwx 1 <me> www-data 29 Oct 25 08:18 webroot -> /<...>/<host.com>//
    looks messy to me.
    and on the webroot:
    ~/webroot$ ll
    total 36
    drwxrwxr-x 7 www-data www-data 4096 Nov 22 20:14 ./
    drwxrwxrwx 30 www-data www-data 4096 Oct 25 08:17 ../
    drwxrwsr-x 2 www-data www-data 4096 Oct 25 08:27 adminer/
    drwxr-xr-x 2 www-data www-data 4096 Nov 17 11:23 files/ <<===================
    drwxr-xr-x 2 www-data www-data 4096 Oct 31 08:09 fonts-audim/ <<===================
    drwxrwsr-x 2 www-data www-data 4096 Oct 29 22:31 img/
    -rw-rwSr-- 1 www-data www-data 1597 Oct 31 08:28 index.html
    -rwxrwxr-x 1 www-data www-data 1921 Oct 31 08:16 stylesheet-audim.css*
    i can't delete the files and fonts-audim folders although i myself created them.
    Q:
    - How can i set up ssh/sshfs to avoid something like this happening ever again?
    - Can i delete these files myself or do i have to ask my friend?
    thanks in advance.
    ps: everything between < > i have hidden in this thread, real values are used in the configs/commands.
    Last edited by ondoho (2013-11-27 06:51:20)

    thanks for taking an interest!
    Spider.007 wrote:First of all, I'm assuming your first command has a typo, since w+g is invalid.
    yes, let's. it's a quote from an email.
    Second; what is the exact output from `rmdir files`?
    $ rmdir files
    rmdir: failed to remove `files': Directory not empty
    $ rm -R files
    rm: descend into write-protected directory `files'? y
    rm: remove write-protected regular file `files/abc.zip'? y
    rm: cannot remove `files/abc.zip': Permission denied
    I'm guessing someone else put some stuff in there which you are not allowed to remove, leading to your problem.
    no, i created everything in the webroot folder except for index.html and the adminer dir.
    I suspect this has something to do with my previous invoking sshfs without the idmap option (or a wrong one) or my friend's activities to help me access my files.
    ...try renaming a folder to see if that works.
    no problem there.
    however, renaming the zipfile inside the folder:
    $ mv abc.zip bca.zip
    mv: cannot move `abc.zip' to `bca.zip': Permission denied
    Also; from your output it seems files & fonts-audim is created by www-data, not you?
    my friend, rentee of the virtual server, says it's normal that i am not the owner of the webroot dir (which is just a symlink to some dir in /var/.....)
    but still...
    Last edited by ondoho (2013-11-23 18:53:13)

  • Directory and file permissions in Oracle EBS R12.2.4

    Hi there
    I beleive that a typical R12.2.4 Linux x86-64 based environment has following directory structure under the installation directory (/u01/oracle/<SID>)
    11.2.0  data  fs1  fs2  fs_ne
    So my question here is what should be the permission level of these directories (and their subdirectories) and the files underneath them. I am looking for permissions for both Database Tier and Application Tier directories and associated files. Is there a published Oracle Support document for this?
    Regards
    Kabeer

    But by memory I recall that the files underneath the DB and Apps Tier's directories were having lesser permissions. And that's where I was asking to make sure.
    The list of files/directories with the permissions are not documented and the only way to revert back to the original values which are set by Rapid Install is re-running the installation again.
    If this instance is used for practice only you may keep permissions the way they are now as long as the application/database work with no issues.
    Thanks,
    Hussein

  • Power shell script to list all files and folder permissions recursively

    Hi All,
    I am looking for a powershell script to perform the following operations.
    1) To list the folder and file permissions(Allow,Deny both) recursively in a given folder.
    2) List out all the files and folders which are having the deny permission or having only the read access (or) only the write access. Basically the folder should have Read,Execute,Write permissions. Else we have to flag that file/folder name.
    I had written a batch script for the same which does this task using icacls.exe output, but this script takes lot of time to recursively parse all the files ( ~1 lakh files).
    Please help me with the powershell script for the same.
    Thanks
    Sambasiva

    Try this module: http://gallery.technet.microsoft.com/scriptcenter/PowerShellAccessControl-d3be7b83
    After importing the module, you can run something like this:
    dir c:\folder -recurse | Get-AccessControlEntry
    That output can be exported to a CSV for later viewing. You can also provide some parameters to Get-AccessControlEntry to limit the results:
    dir c:\folder -recurse | Get-AccessControlEntry -FileRights Write
    dir c:\folder -recurse | Get-AccessControlEntry -AceType AccessDenied
    dir c:\folder -recurse | Get-AccessControlEntry -AceType AccessAllowed -FileRights Write

  • Solved - How to take ownership and change permissions for blocked files and folders in Powershell

    Hello,
    I was trying to take ownership & fix permissions on Home Folder/My Documents structures, I ran into the common problem in PowerShell where Set-Acl & Get-Acl return access denied errors. The error occurs because the Administrators have been removed from
    file permissions and do not have ownership of the files,folders/directories. (Assuming all other permissions like SeTakeOwnershipPrivilege have been enabled.
    I was not able to find any information about someone successfully using native PS to resolve the issue.  As I was able to solve the issues surrounding Get-Acl & Set-Acl, I wanted to share the result for those still looking for an answer.
    Question: How do you use only Powershell take ownership and reset permissions for files or folders you do not have permissions or ownership of?
    Problem: 
    Using the default function calls to the object fail for a folder that the administrative account does not have permissions or file ownership. You get the following error for Get-Acl:
    PS C:\> Get-Acl -path F:\testpath\locked
    Get-Acl : Attempted to perform an unauthorized operation.
    + get-acl <<<< -path F:\testpath\locked
    + CategoryInfo : NotSpecified: (:) [Get-Acl], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.GetAclCommand
    If you create a new ACL and attempt to apply it using Set-Acl, you get:
    PS C:\> Set-Acl -path F:\testpath\locked -AclObject $DirAcl
    Set-Acl : Attempted to perform an unauthorized operation.
    At line:1 char:8
    + Set-Acl <<<< -path "F:\testpath\locked" -AclObject $DirAcl
    + CategoryInfo : PermissionDenied: (F:\testpath\locked:String) [Set-Acl], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetAclCommand
    Use of other functions like .GetAccessControl will result in a similar error: "Attempted to perform an unauthorized operation."
    How do you replace owner on all subcontainers and objects in Powershell with resorting to external applications like takeown, icacls, Windows Explorer GUI, etc.?
    Tony

    Hello,
    Last, here is the script I used to reset permissions on the "My Documents" tree structure that admins did not have access to:
    Example:  Powershell script to parse a directory of User-owned "My Document" redirection folders and reset permissions.
    #Script to Reset MyDocuments Folder permissions
    $domainName = ([ADSI]'').name
    Import-Module "PSCX" -ErrorAction Stop
    Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeRestorePrivilege", $true) #Necessary to set Owner Permissions
    Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeBackupPrivilege", $true) #Necessary to bypass Traverse Checking
    #Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeSecurityPrivilege", $true) #Optional if you want to manage auditing (SACL) on the objects
    Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeTakeOwnershipPrivilege", $true) #Necessary to override FilePermissions & take Ownership
    $Directorypath = "F:\Userpath" #locked user folders exist under here
    $LockedDirs = Get-ChildItem $Directorypath -force #get all of the locked directories.
    Foreach ($Locked in $LockedDirs) {
    Write-Host "Resetting Permissions for "$Locked.Fullname
    #######Take Ownership of the root directory
    $blankdirAcl = New-Object System.Security.AccessControl.DirectorySecurity
    $blankdirAcl.SetOwner([System.Security.Principal.NTAccount]'BUILTIN\Administrators')
    $Locked.SetAccessControl($blankdirAcl)
    ###################### Setup & apply correct folder permissions to the root user folder
    #Using recommendation from Ned Pyle's Ask Directory Services blog:
    #Automatic creation of user folders for home, roaming profile and redirected folders.
    $inherit = [system.security.accesscontrol.InheritanceFlags]"ContainerInherit, ObjectInherit"
    $propagation = [system.security.accesscontrol.PropagationFlags]"None"
    $fullrights = [System.Security.AccessControl.FileSystemRights]"FullControl"
    $allowrights = [System.Security.AccessControl.AccessControlType]"Allow"
    $DirACL = New-Object System.Security.AccessControl.DirectorySecurity
    #Administrators: Full Control
    $DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("BUILTIN\Administrators",$fullrights, $inherit, $propagation, "Allow")))
    #System: Full Control
    $DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("NT AUTHORITY\SYSTEM",$fullrights, $inherit, $propagation, "Allow")))
    #Creator Owner: Full Control
    $DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("CREATOR OWNER",$fullrights, $inherit, $propagation, "Allow")))
    #Useraccount: Full Control (ideally I would error check the existance of the user account in AD)
    #$DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("$domainName\$Locked.name",$fullrights, $inherit, $propagation, "Allow")))
    $DirACL.AddAccessRule((new-object System.Security.AccessControl.FileSystemAccessRule("$domainName\$Locked",$fullrights, $inherit, $propagation, "Allow")))
    #Remove Inheritance from the root user folder
    $DirACL.SetAccessRuleProtection($True, $False) #SetAccessRuleProtection(block inheritance?, copy parent ACLs?)
    #Set permissions on User Directory
    Set-Acl -aclObject $DirACL -path $Locked.Fullname
    Write-Host "commencer" -NoNewLine
    ##############Restore admin access & then restore file/folder inheritance on all subitems
    #create a template ACL with inheritance re-enabled; this will be stamped on each subitem to re-establish the file structure with inherited ACLs only.
    #$NewOwner = New-Object System.Security.Principal.NTAccount("$domainName","$Locked.name") #ideally I would error check this.
    $NewOwner = New-Object System.Security.Principal.NTAccount("$domainName","$Locked") #ideally I would error check this.
    $subFileACL = New-Object System.Security.AccessControl.FileSecurity
    $subDirACL = New-Object System.Security.AccessControl.DirectorySecurity
    $subFileACL.SetOwner($NewOwner)
    $subDirACL.SetOwner($NewOwner)
    ######## Enable inheritance ($False) and not copy of parent ACLs ($False)
    $subFileACL.SetAccessRuleProtection($False, $False) #SetAccessRuleProtection(block inheritance?, copy parent ACLs?)
    $subDirACL.SetAccessRuleProtection($False, $False) #SetAccessRuleProtection(block inheritance?, copy parent ACLs?)
    #####loop through subitems
    $subdirs = Get-ChildItem -path $Locked.Fullname -force -recurse #force is necessary to get hidden files/folders
    foreach ($subitem in $subdirs) {
    #take ownership to insure ability to change permissions
    #Then set desired ACL
    if ($subitem.Attributes -match "Directory") {
    # New, blank Directory ACL with only Owner set
    $blankdirAcl = New-Object System.Security.AccessControl.DirectorySecurity
    $blankdirAcl.SetOwner([System.Security.Principal.NTAccount]'BUILTIN\Administrators')
    #Use SetAccessControl to reset Owner; Set-Acl will not work.
    $subitem.SetAccessControl($blankdirAcl)
    #At this point, Administrators have the ability to change the directory permissions
    Set-Acl -aclObject $subDirACL -path $subitem.Fullname -ErrorAction Stop
    } Else {
    # New, blank File ACL with only Owner set
    $blankfileAcl = New-Object System.Security.AccessControl.FileSecurity
    $blankfileAcl.SetOwner([System.Security.Principal.NTAccount]'BUILTIN\Administrators')
    #Use SetAccessControl to reset Owner; Set-Acl will not work.
    $subitem.SetAccessControl($blankfileAcl)
    #At this point, Administrators have the ability to change the file permissions
    Set-Acl -aclObject $subFileACL -path $subitem.Fullname -ErrorAction Stop
    Write-Host "." -NoNewline
    Write-Host "fin."
    Write-Host "Script Complete."
    I hope you find this useful.
    Thank you,
    Tony
    Final Thought: There are great non-PS tools like
    Set-Acl and takeown which are external to PS & can also do the job wonderfully.  It may be much simpler to call those tools than recreate the wheel in pure
    code.  Feel free to use whatever best suits your time, scope & cost.

  • [solved] vsftpd: Uploaded files are with permissions -rw-------.?

    Hello,
    I have a problem with the ftp server(vsftpd).The new files are saved with permissions 600 (rw ----). So apache server can't show them. Ftp access is configured with my local user and this home is in /srv/http.
    The trouble is the user config access...
    Last edited by felipe (2013-07-29 16:38:14)

    solved:
    acording to
    Q) Help! Uploaded files are appearing with permissions -rw-------.
    A1) Depending on if this is an upload by a local user or an anonymous user,
    use "local_umask" or "anon_umask" to change this. For example, use
    "anon_umask=022" to give anonymously uploaded files permissions
    -rw-r--r--. Note that the "0" before the "22" is important.
    A2) Also see the vsftpd.conf.5 man page for the new "file_open_mode"
    parameter.
    more info :
    https://security.appspot.com/vsftpd/FAQ.txt

  • [Solved] yaourt -Syyua: file owned by 'p7zip' and 'p7zip-gui'

    Lately I got this really strange issue:
    Everytime I run
    yaourt -Syyua
    I get this output:
    :: Synchronizing package databases...
    core 105.4 KiB 392K/s 00:00 [------------------------------------------------] 100%
    extra 1516.7 KiB 1189K/s 00:01 [------------------------------------------------] 100%
    community 1943.1 KiB 1507K/s 00:01 [------------------------------------------------] 100%
    multilib 106.0 KiB 1413K/s 00:00 [------------------------------------------------] 100%
    archlinuxfr 8.6 KiB 4.22M/s 00:00 [------------------------------------------------] 100%
    padevchooser : Orphan
    Foreign packages: \ 95 / 95
    file owned by 'p7zip' and 'p7zip-gui': 'usr/bin/7zFM'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/bin/7zG'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/bin/p7zipForFilemanager'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/7z.sfx'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/7zFM'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/7zG'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/af.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ar.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ast.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/az.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ba.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/be.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/bg.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/bn.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/br.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ca.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/cs.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/cy.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/da.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/de.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/el.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/en.ttt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/eo.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/es.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/et.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/eu.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ext.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/fa.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/fi.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/fr.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/fur.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/fy.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/gl.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/gu.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/he.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/hi.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/hr.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/hu.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/hy.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/id.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/io.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/is.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/it.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ja.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ka.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/kk.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ko.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ku-ckb.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ku.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/lt.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/lv.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/mk.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/mn.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/mr.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ms.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/nb.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ne.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/nl.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/nn.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/pa-in.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/pl.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ps.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/pt-br.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/pt.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ro.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ru.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/sa.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/si.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/sk.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/sl.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/sq.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/sr-spc.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/sr-spl.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/sv.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ta.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/th.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/tr.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/tt.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/ug.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/uk.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/uz.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/va.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/vi.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/zh-cn.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/Lang/zh-tw.txt'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/7zip.hhc'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/7zip.hhk'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/add.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/bench.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/delete.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/extract.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/extract_full.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/index.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/list.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/style.css'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/test.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/commands/update.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/exit_codes.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/index.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/style.css'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/ar_exclude.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/ar_include.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/ar_no.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/charset.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/exclude.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/include.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/index.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/large_pages.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/list_tech.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/method.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/output_dir.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/overwrite.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/password.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/recurse.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/sfx.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/ssc.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/stdin.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/stdout.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/stop_switch.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/style.css'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/type.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/update.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/volume.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/working_dir.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/switches/yes.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/cmdline/syntax.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/about.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/benchmark.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/index.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/menu.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/options.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/plugins/7-zip/add.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/plugins/7-zip/extract.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/plugins/7-zip/index.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/plugins/7-zip/style.css'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/plugins/index.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/plugins/style.css'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/fm/style.css'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/general/7z.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/general/faq.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/general/formats.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/general/index.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/general/license.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/general/performance.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/general/style.css'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/general/thanks.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/start.htm'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/lib/p7zip/help/style.css'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/applications/7zFM.desktop'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/icons/hicolor/32x32/apps/p7zip.png'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/kde4/services/ServiceMenus/p7zip_compress.desktop'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/kde4/services/ServiceMenus/p7zip_compress2.desktop'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/kde4/services/ServiceMenus/p7zip_extract.desktop'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/kde4/services/ServiceMenus/p7zip_extract_subdir.desktop'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/kde4/services/ServiceMenus/p7zip_extract_to.desktop'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/kde4/services/ServiceMenus/p7zip_test.desktop'
    file owned by 'p7zip' and 'p7zip-gui': 'usr/share/kde4/services/ServiceMenus/readme.txt'
    When I go to check the file permissions, I see this:
    $ ls -la /usr/bin/7zFM
    -rwxr-xr-x 1 root root 38 30. Okt 2011 /usr/bin/7zFM
    $ ls -la /usr/lib/p7zip/Lang
    total 1340
    drwxr-xr-x 2 root root 4096 30. Okt 2011 .
    drwxr-xr-x 5 root root 4096 30. Okt 2011 ..
    -rw-r--r-- 1 root root 9894 30. Okt 2011 af.txt
    -rw-r--r-- 1 root root 16379 30. Okt 2011 ar.txt
    -rw-r--r-- 1 root root 10186 30. Okt 2011 ast.txt
    -rw-r--r-- 1 root root 13281 30. Okt 2011 az.txt
    -rw-r--r-- 1 root root 17623 30. Okt 2011 ba.txt
    -rw-r--r-- 1 root root 18371 30. Okt 2011 be.txt
    -rw-r--r-- 1 root root 20045 30. Okt 2011 bg.txt
    -rw-r--r-- 1 root root 22508 30. Okt 2011 bn.txt
    -rw-r--r-- 1 root root 10191 30. Okt 2011 br.txt
    -rw-r--r-- 1 root root 13255 30. Okt 2011 ca.txt
    -rw-r--r-- 1 root root 13566 30. Okt 2011 cs.txt
    -rw-r--r-- 1 root root 10163 30. Okt 2011 cy.txt
    -rw-r--r-- 1 root root 12403 30. Okt 2011 da.txt
    -rw-r--r-- 1 root root 13970 30. Okt 2011 de.txt
    -rw-r--r-- 1 root root 21044 30. Okt 2011 el.txt
    -rw-r--r-- 1 root root 12505 30. Okt 2011 en.ttt
    -rw-r--r-- 1 root root 10164 30. Okt 2011 eo.txt
    -rw-r--r-- 1 root root 13977 30. Okt 2011 es.txt
    -rw-r--r-- 1 root root 12938 30. Okt 2011 et.txt
    -rw-r--r-- 1 root root 12286 30. Okt 2011 eu.txt
    -rw-r--r-- 1 root root 13602 30. Okt 2011 ext.txt
    -rw-r--r-- 1 root root 16143 30. Okt 2011 fa.txt
    -rw-r--r-- 1 root root 13621 30. Okt 2011 fi.txt
    -rw-r--r-- 1 root root 14109 30. Okt 2011 fr.txt
    -rw-r--r-- 1 root root 13360 30. Okt 2011 fur.txt
    -rw-r--r-- 1 root root 11954 30. Okt 2011 fy.txt
    -rw-r--r-- 1 root root 10150 30. Okt 2011 gl.txt
    -rw-r--r-- 1 root root 26159 30. Okt 2011 gu.txt
    -rw-r--r-- 1 root root 15876 30. Okt 2011 he.txt
    -rw-r--r-- 1 root root 26250 30. Okt 2011 hi.txt
    -rw-r--r-- 1 root root 12963 30. Okt 2011 hr.txt
    -rw-r--r-- 1 root root 14041 30. Okt 2011 hu.txt
    -rw-r--r-- 1 root root 18182 30. Okt 2011 hy.txt
    -rw-r--r-- 1 root root 12794 30. Okt 2011 id.txt
    -rw-r--r-- 1 root root 9662 30. Okt 2011 io.txt
    -rw-r--r-- 1 root root 11781 30. Okt 2011 is.txt
    -rw-r--r-- 1 root root 13609 30. Okt 2011 it.txt
    -rw-r--r-- 1 root root 15410 30. Okt 2011 ja.txt
    -rw-r--r-- 1 root root 19279 30. Okt 2011 ka.txt
    -rw-r--r-- 1 root root 17161 30. Okt 2011 kk.txt
    -rw-r--r-- 1 root root 14199 30. Okt 2011 ko.txt
    -rw-r--r-- 1 root root 19177 30. Okt 2011 ku-ckb.txt
    -rw-r--r-- 1 root root 10725 30. Okt 2011 ku.txt
    -rw-r--r-- 1 root root 12727 30. Okt 2011 lt.txt
    -rw-r--r-- 1 root root 10236 30. Okt 2011 lv.txt
    -rw-r--r-- 1 root root 14626 30. Okt 2011 mk.txt
    -rw-r--r-- 1 root root 14198 30. Okt 2011 mn.txt
    -rw-r--r-- 1 root root 17123 30. Okt 2011 mr.txt
    -rw-r--r-- 1 root root 9950 30. Okt 2011 ms.txt
    -rw-r--r-- 1 root root 11271 30. Okt 2011 nb.txt
    -rw-r--r-- 1 root root 21349 30. Okt 2011 ne.txt
    -rw-r--r-- 1 root root 13670 30. Okt 2011 nl.txt
    -rw-r--r-- 1 root root 11004 30. Okt 2011 nn.txt
    -rw-r--r-- 1 root root 22337 30. Okt 2011 pa-in.txt
    -rw-r--r-- 1 root root 13559 30. Okt 2011 pl.txt
    -rw-r--r-- 1 root root 14620 30. Okt 2011 ps.txt
    -rw-r--r-- 1 root root 13330 30. Okt 2011 pt-br.txt
    -rw-r--r-- 1 root root 13466 30. Okt 2011 pt.txt
    -rw-r--r-- 1 root root 13460 30. Okt 2011 ro.txt
    -rw-r--r-- 1 root root 18564 30. Okt 2011 ru.txt
    -rw-r--r-- 1 root root 27889 30. Okt 2011 sa.txt
    -rw-r--r-- 1 root root 24592 30. Okt 2011 si.txt
    -rw-r--r-- 1 root root 13780 30. Okt 2011 sk.txt
    -rw-r--r-- 1 root root 11907 30. Okt 2011 sl.txt
    -rw-r--r-- 1 root root 11116 30. Okt 2011 sq.txt
    -rw-r--r-- 1 root root 18547 30. Okt 2011 sr-spc.txt
    -rw-r--r-- 1 root root 12835 30. Okt 2011 sr-spl.txt
    -rw-r--r-- 1 root root 13207 30. Okt 2011 sv.txt
    -rw-r--r-- 1 root root 20036 30. Okt 2011 ta.txt
    -rw-r--r-- 1 root root 23571 30. Okt 2011 th.txt
    -rw-r--r-- 1 root root 12954 30. Okt 2011 tr.txt
    -rw-r--r-- 1 root root 17867 30. Okt 2011 tt.txt
    -rw-r--r-- 1 root root 18251 30. Okt 2011 ug.txt
    -rw-r--r-- 1 root root 19186 30. Okt 2011 uk.txt
    -rw-r--r-- 1 root root 10221 30. Okt 2011 uz.txt
    -rw-r--r-- 1 root root 11686 30. Okt 2011 va.txt
    -rw-r--r-- 1 root root 13219 30. Okt 2011 vi.txt
    -rw-r--r-- 1 root root 12457 30. Okt 2011 zh-cn.txt
    -rw-r--r-- 1 root root 12544 30. Okt 2011 zh-tw.txt
    Does anyone know what's going on here? Thanks in advance for your help!
    Last edited by derblub (2013-04-28 11:09:04)

    Thanks for the link, unfortunately p7zip-extra didn't add anything to the context-menu. Will continue searching, since I liked the 7zip menu. Anyways - my main problem is now solved - shouldn't be a big problem to manually add that menu back again.
    Edit: For future readers - just got back the context-menu entries by re-installing following:
    pacman -S p7zip desktop-file-utils wxgtk
    Last edited by derblub (2013-04-28 11:39:20)

Maybe you are looking for

  • Can I Use Time Machine With Carbon Copy Cloner?

    As of today, I upgraded my iMac (and eventually my Macbook) to Snow Leopard. I used Carbon Copy Cloner to create a clone of my drive to my external (I did a clean install) and now that Snow Leopard is installed, I only want to put back on to my compu

  • Alright I give! I need some help with groups/busses and more please..

    Hi all, Well, its now been a few weeks of my off and on testing with my new Logic Rig, I have every plug I can transfer over to UB that I can and now am trying to get deeper into things. First I struggled with learning the environment (I still dont g

  • Computer died need to transfer music

    My computer fried the only music I have is the music on my iPod I have a iPod nano (second generation) is there a way for me to move my music from my iPod to my new computer. Please I don't want to lose all of my music!

  • Problem With Open Data sets

    Hi frnds, Problem details: We have to read file from applicaitn server, In the file data its having tab spaces between fields . when i m trying to read the file, Data is comming but , inthe place of Spaces its giving special character "#".. please he

  • Planned Order, with first Prod Version.

    Dear All, I am Trying to use Production version for diffrent style of Production Req for same product. When i Gave PV in MD61, for diff days, diff PVs, Is is not reflecting in PLanned ORders. Planned Order have only one PV. for all RIRs. Kindly let m