Permz - Quickly change file permissions in any file manager

Designed to be integrated into any file manager, permz is a bash script which presents a GUI menu.  You can use it to quickly change file permissions and ownership as a normal user or as root, and delete files as root.  I wrote this because I have yet to see a file manager that isn't cumbersome for this - the mechanism is usually buried on a second tab of the Properties window, and changing permissions often involves multiple clicks in a grid. To change the owner of a file, you need to type the username. And if the file is owned by root, you can't do anything.
permz --help
Presents a GUI menu for changing file permissions/ownership. May be run
as a normal user or root.
Requires: zenity gksu
Optional: sudo (recommended to prevent multiple root password prompts)
Usage: permz FILE [...]
MENU FUNCTIONS:
rwxrwxrwx Sets file(s) to given permissions
Sticky Clear/Set Performs "chmod -t" or +t to clear or set the sticky
bit. You may select to clear/set sticky in addition
to changing other permissions.
Recursive go-rxw "chmod -R go-rxw" on file(s) recursively, denying
access to non-owners
Recursive go-w "chmod -R go-w" on file(s) recursively, denying write
to non-owners
Recursive ugo+rX "chmod -R ugo+rX" giving read access to all. Also
sets +x for directories and executables.
Recursive ugo+w "chmod -R ugo+w" on file(s), giving write to all
(You may select several compatible recursive functions above at once)
Owner USER As ROOT Sets ownership to USER:USER as root
DELETE As ROOT Deletes file(s) as root. Must be used alone or with
"Perform Recursively" (to delete directories - USE
WITH CAUTION). Not available if permz is run as root.
Perform As ROOT Run as root to change selected permissions.
(Use of root is automatic when changing ownership)
Perform Recursively Adds -R to all chmod, chown, and delete commands to
descend into subdirectories. Use in conjunction with
any other functions. (Recursion is automatic for
"Recursive" functions above)
Current su command is set to: gksu -gS
If you're somewhat familiar with bash, adding additional options or changing the existing ones is straightforward.
I have tested it pretty thoroughly but if you do encounter anything amiss please let me know.
More details at http://igurublog.wordpress.com/downloads/script-permz/
And in the AUR at http://aur.archlinux.org/packages.php?ID=36978
Instructions for integrating permz into PCManFM-Mod are here.
Last edited by IgnorantGuru (2010-05-05 13:53:08)

rransom wrote:Recursive ugo+rX would be more useful than "Recursive ugo+r (dirs +x)".  (The +X feature of chmod is available at least in GNU coreutils, FreeBSD, and POSIX 2003.)
Done - thanks for the tip.  I also left the old code active in there with just the menu option disabled, so if anyone wants it the other way or wants both it's easy to enable.  The difference is that the old way won't make any files +x, just dirs.
permz doesn't provide every possible setting of permissions, just common ones, so you may want to customize it.  But I used to have these as user actions when I used Krusader and I found these were the handy ones, at least for me.

Similar Messages

  • [svn:bz-trunk] 14750: Add +x to file permissions of sh files so they can be executed by default.

    Revision: 14750
    Revision: 14750
    Author:   [email protected]
    Date:     2010-03-14 11:16:54 -0700 (Sun, 14 Mar 2010)
    Log Message:
    Add +x to file permissions of sh files so they can be executed by default.
    Modified Paths:
        blazeds/trunk/servers/apache-tomcat-6.0.14/bin/catalina.sh
        blazeds/trunk/servers/apache-tomcat-6.0.14/bin/digest.sh
        blazeds/trunk/servers/apache-tomcat-6.0.14/bin/setclasspath.sh
        blazeds/trunk/servers/apache-tomcat-6.0.14/bin/shutdown.sh
        blazeds/trunk/servers/apache-tomcat-6.0.14/bin/startup.sh
        blazeds/trunk/servers/apache-tomcat-6.0.14/bin/tool-wrapper.sh
        blazeds/trunk/servers/apache-tomcat-6.0.14/bin/version.sh

    Hi there
    I'm also having this problem. I'm downloading a .zip file then using the fzip library I'm unziping to the applicationStorageDirectory.
    After the unzip I'm trying to execute a .app file with native process but the file doesn't laungh, after changing the file permissions manually with the command line the file executes...
    Any suggestion?

  • Cannot Add File Share to (any) File Server Role of a Cluster in Windows Server 2012

    Cannot Add File Share to (any) File Server Role of a Cluster in Windows Server 2012...
    Get this message in the Operational Log in "FileServices-ServerManager-EventProvider" section of MS-Windows Eventlogs:
    Exception: Caught exception Microsoft.Management.Infrastructure.CimException: The xsi:type attribute (MSCluster_Property_Resource_Network_Name) does not identify an existing class.
       at Microsoft.Management.Infrastructure.Internal.Operations.CimSyncEnumeratorBase`1.MoveNext(Boolean discardResultsAndErrors)
       at Microsoft.Management.Infrastructure.Internal.Operations.CimSyncEnumeratorBase`1.MoveNext()
       at Microsoft.FileServer.Management.Plugin.Services.FSCimSession.PerformQuery(String cimNamespace, String queryString)
       at Microsoft.FileServer.Management.Plugin.Services.ClusterEnumerator.BuildNodes(ICimSession session, ClusterRole scopeType, String query, IDictionary`2 groupNameToTypeMap)
       at Microsoft.FileServer.Management.Plugin.Services.ClusterEnumerator.GetClusterClientAccessPointNames(ICimSession session, IDictionary`2 groupNameToTypeMap)
       at Microsoft.FileServer.Management.Plugin.Services.ClusterEnumerator.RetrieveClusterConnections(ComputerName serverName, ClusterMemberTypes memberTypeToQuery)
    Thanks for help...(everything else works fine in other type of cluster roles).
    Thomas.

    This issue also happens in fresh Windows 2012R2 installations, not just upgrades from 2008R2!
    I have the issue where I cannot modify any settings on SMB shares.  Here is the stacktrace.  It appears to be WMI related.
    Error: ERROR: Task 'TEST.xxxxxxx.COM-ClusterStorage$-SmbShareUpdate-46bcabf6-1dd4-4a48-a525-5e5d374596c7' has failed: Microsoft.FileServer.Management.Plugin.FSACException: Error occurred while updating an SMB share: The requested operation is not supported.
    ---> Microsoft.Management.Infrastructure.CimException: The requested operation is not supported.
       at Microsoft.Management.Infrastructure.Internal.Operations.CimSyncEnumeratorBase`1.MoveNext()
       at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
       at Microsoft.Management.Infrastructure.CimSession.ModifyInstance(String namespaceName, CimInstance instance, CimOperationOptions options)
       at Microsoft.FileServer.Management.Plugin.Services.FSCimSession.ModifyInstance(ICimInstance instance)
       at Microsoft.FileServer.Management.Plugin.Services.FSCimSession.ModifyInstance(ICimInstance instance, IEnumerable`1 propertiesWithKeys)
       at Microsoft.FileServer.Management.Plugin.Providers.WmiUpdateTaskBase.DoUpdateInstance(ICimSession session, ICimInstance instance)
       at Microsoft.FileServer.Management.Plugin.Providers.WmiUpdateTaskBase.DoWork(Object sender, DoWorkEventArgs e)
       --- End of inner exception stack trace ---
       at Microsoft.FileServer.Management.Plugin.Providers.WmiUpdateTaskBase.DoWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

  • How to change file permissions on ULOG file??

    Hi
    I'm trying to change the file permissions on the ULOG file. By default it's being created with rw-rw-rw- permissions, and so any user can overwrite it.
    I'm using Tuxedo 8.0 on HP-UX.
    I've tried umask and that doesn't work. Nor does the PERM setting in the ubb file - looks like that is only for IPC structures.
    I want it to be created with rw-r--r-- permissions so that only the tux administrator has write access.
    Thanks in advance.

    We also encouter this problem. Seems like hard code. As it doesn't related to umask.
    As workaround solution, you may want to set ULOGPFX inside UBBCONFIG file, and proteck the directry with access mode 700.

  • Unable to save files permissions issue (this file is locked)

    This is my first post here so thanks in advance for any help you may be able to offer.
    After creating a new secondary admin account I logged into it and wanted to access my documents folder on my main account so I added the new user as having "read and write" permissions for the folder and "applied to enclosed items". This worked however, when i logged back into my main account I am not UNABLE TO MAKE ANY SAVES TO ANY OF MY FILES IN THE DOCUMENTS FOLDER.
    This is despite my user account having "read and write access" for the affected files.
    Steps taken to solve issues:
    1. Removed second account by deleting it through Sytem Prefs. STILL NOT WORKING
    2. Applied "read and write" privalliges to the entire docuemnts folder and enclosed items for main admin account. STILL NOT WORKING
    3. Used Disc Utilities to run a "repair permissions" on HD. STILL NOT WORKING.
    4. Held Command R after restarting in "Repair Mode" - selected terminal and typed "reset password" - from that window I Reset Home Directory Permissions and ACLs. STILL NOT WORKING!
    Does anyone know how to solve this issue? I know you can duplicate a file, resave it and it solves it but I have 1000's of files and this would take me weeks.
    Many thanks in advance... Lion is 10.7.2 and still a nightmare :-(

    When I first started using Oracle9i JDeveloper everything went ok. Then I changed the permissions on my local C: drive and when I saw this caused problems with my swap file I set them back to what they were. Now my problem is that I cannot continue to work on coding as I cannot now save anything in JDeveloper as it keeps saying I cannot save files and that I should check the permissions. Anyone know what my permissions should be ? I have granted uncle Tom Cobbley and all full everythng (CRUD) access to my local disk and this does not seem to have solved the problem. Any ideas ? Steven:
    When you changed permissions back, did you propagate the change to subdir and files?
    Also, using the explorer, select the file, bring up its properties, and check the 'Security' panel to see if it indeed allows all permissions to everyone.
    Thanks.
    Sung

  • How do i get the file properties of any file in the phone?

    i need to get the meta data / properties of files in the phone.
    in addition, i will need the song title, artist, genre, etc information from video and audio files.
    can somebody help?

    but i cant seem to find any APIs Impl. would definitely complex.. as there are no stright api. matching your exact need (not sure if some third party has any library meeting your needs).
    that support the function of reading the whole file as the WHOLE file (headers + content).You could read byte by byte or set of bytes using read() and its overloaded method and store in byte[] array.
    It get the meaning full understanding of these bytes and get what you really need.. for the audio and video file, you need to go to the specification and read the bytes accordingly.
    if there are, then is there a way to rewrite the file?
    is there a way to change the bits in the file without creating a new one?Yes you could if you open the file with readwrite (look at Connector) mode and with OutputStreamWriter.
    Some of the challenges you would phase are memory issues, performance issues while reading big files..
    Regards,
    Raja Nagendra Kumar

  • How do you change volume permissions with Solaris Volume Manager?

    (Previously posted in "Talk to the Sysop" - no replies)
    I'm trying to set up Solaris 9 to run Oracle on raw partitions. I have my design nailed down and I have built all the raw partitions I need as soft partitions on top of RAID 1 volumes. All this is built using Solaris Volume Manager (SVM).
    However, all the partitions are still owned by root. Before I can create my Oracle database, I need to change the owner of the Oracle partitions to oracle:oinstall. The only reference I found telling me how to do this was in a Sun Blueprint and it essentially said "You can't change volume permissions directly or permanently using SVM and chown will only remain effective until the next reboot. To make the changes permanent, you must modify /etc/minor_perm". Unfortunately, I can't find an example of how to do this anywhere and the online man pages are not particularly helpful (at least not to me).
    I'd appreciate a quick pointer, either to a good online resource or, even better, a simple example. For background, the volumes Oracle needs to own are:
    /dev/md/rdsk/d101-109
    /dev/md/rdsk/d201-203
    /dev/md/rdsk/d301-303
    /dev/md/rdsk/d401-403
    /dev/md/rdsk/d501-505
    I provide this information because I'd like to assign some, but not all, of the devices under /dev/md/rdsk to the oracle user and I was hoping some smart person out there could illustrate an approach using simle regular expressions, at which I'm horribly poor.
    Thanks in advance,
    Adrian

    Ron, I feel your pain.  I just came from an HTC also and a lot of stuff with this iPhone is bugging the crap out of me.  Who makes a phone where you can't adjust the ringer and alert volumes independently?  Instead, I have to adjust the alert volume when it is active.  C'mon guys.  Get with the program.  You won a bunch of Android users over with the 4S, but you're going to chase us all back when we're done with our contract.  Frustrating.  

  • I only create Read Only folders can't set permissions for any file but mine

    My issue is I have 25 users and an X-Serve and it seems like all the users
    do not have the same permissions. More specifically if a user creates a
    folder on the server only that user can access it. This is the same if the
    user creates the folder on there desktop and then copies the files to the
    server. But if they copy a "read only" folder or file (this happens more
    with files) to there desktop and then they open the file save it and place
    it back on the server there is no problem.
    I also, have a user that whenever she creates a folder it automatically
    set's itself to read only. No matter whether she copies from her desktop to
    the server or visa versa. Every folder she creates is protected this way
    here settings are all the same as everyone else. So I'm not sure if she is
    unique or if the settings for my users are incorrect.
    I did not set up the server or the user's so I'm really trying to catch up
    quick. We are really suffering in that it totally slow's things down almost
    to a crawl in some cases. I really hope you can help me out with this I've
    attached some screen shot's and the X-Serve system profiler for background.
    --

    I suggest posting to the Xerve forum http://discussions.apple.com/forum.jspa?forumID=854

  • How to give write permissions to any file in mac os x 10.8.3

    How can we give write access to the file in mac os x 10.8.3.It is not allowing to login as root user also.Can any one please help me in this.I think in mac os x 10.8.3 security update only bloocked this root access.We can give permissions to anyfile upto mac os x 10.8.2.How can we edit any system files?

    Download TextWrangler from BareBones' website, not the Mac App Store. It will allow you to edit system files by authenticating. The Mac App store version doesn't have that capability.
    You could also edit them in the Terminal with pico, nano, emacs (perhaps more). TextWrangler is much easier to use, though.

  • How to disable updates and hide set as default browser option in firefox 31.0 for many users,like changing the setttings in any file

    Hi,
    I am trying to disable updates, set as default browser option and import settings from other browers permanently for many users for firefox 31.0.
    can you please help me with that. I know settings are going to prefs.js file in user profile. How can make this permanent for many users.

    Hi gaurav3012,
    Permanent change would be locking preferences: [http://kb.mozillazine.org/Locking_preferences]
    However importing many users profiles to different computers may require a new profile for each user.
    Currently there is an option to import bookmarks from other browsers, but not preferences.
    Update preferences can be read about here: [[Configuration Options for Updates]]
    Firefox ESR is also another version of Firefox that is meant for Enterprise environments [https://www.mozilla.org/en-US/firefox/organizations/] that mostly has their support on their mailing list.

  • Photoshop CS6 file permissions issue with file created with Photoshop CC

    In our studio we have several capture stations and work stations all connected to one file server. An issue occurs when a user of CC creates a file and saves it to the server and a user of CS6 opens the file. The CS6 user cannot save the changes he just made to the file that was created in CC. The CS6 user can do a Save As with no issue. There is also NO problem if the file that was created in CC is transferred to a new drive using the Finder in Mac OS X.
    Has anyone else had a similar issue or know of a solution?
    Here is a screen cap of the error:

    We have solved our issue.
    After running Adobe updates on machine that uses CS6 and then re-starting that machine, our issue seems to have disappeared.
    Hope this helps others.
    Best of luck.

  • Problems with UAC and NTFS File Permissions on a File Server.

    LarryG. wrote:
    It looks to me like your account doesn't have the proper permissions on all of the sub folders.  Can you verify that?  Once you have the proper permissions this issue should go away.
    This is a feature, not a bug.  You do not have permissions.

    Hello Everyone,I'm curious about your experience with UAC and NTFS permissions--in particular on a file server. In my case, I'm running Server 2012 R2.I have a very large company shared folder. I right click on it and go to properties to check the size. The size is only 5GB or so and should be over 300GB. How is this possible? I'm finding that some of its subfolders are tied into UAC and some folders are not. UAC-related subfolder:Non-UAC related subfolder:In the pictures above, both folders are department-related folders. They are not system folders. The folders have the same owner. The folders are located on the same folder level. When I try to view the permissions of the UAC-related folder, I get this:I'm a domain admin, so when I go through the prompts, I can see the permissions.But this is a total pain because I now require third...
    This topic first appeared in the Spiceworks Community

  • Applescript to change permissions of added files

    This is probably really simple but I need a folder action that will alter all added files permissions to R-R-R or alternatively to change the name of the group to "admin"
    The reason for this is because I have been experimenting with setting the global NSUmask so all files are saved to our server as RW-RW-R this is because Photoshop isn't taking any notice of the ACL's and so is making it difficult for different users to work on the same files. My idea is to have a raw image folder that has files saved RW-RW-R via the global unmask and then a folder action to change the permissions when the file gets moved into a Master Image folder

    Oh **** - figured how to do this myself, but realised to only affects files in the folder - not any in sub folders.
    Is there a different way to do this?

  • Changing permissions of a file in Java

    Hi. I have a servlet which creates files on an AIX server. However, due to the default umask setting, the file is being created with insufficient privileges.
    Is there a way to change the permissions of the file which my servlet is creating - from Java? Specifically, I'd like to change the permissions from 640 to 644 - make world readable.
    Please let me know if this is possible. Some examples would be helpful,
    Thanks.

    the first thing that comes to mind is running a cmd line operation to set the file permissions. use Runtime.exec() and whatever command your operating system supports for permissions. i.e.
    Runtime.getRuntime().exec("chmod 644 " + filename);

  • Can you change the permissions on a single html file in the root of a MOSS 2007 site?

    I know what the right answer is, the correct way to implement this is to create a library off the root and place the file that needs to have unique permissions into this library and either change the permissions of the library or of the individual file itself. 
    Anyways, that's what we're going to do...
    However, I'm curious...  Is there a way to change the permissions of a file that was manually placed in the root of a MOSS 2007 site?  I've tried through the GUI and through Designer, and also searched the WWW with no luck.  Is this even doable? 
    We don't want to change the permissions on the entire site, just that one file.
    Thanks,
    -Richard.

    Hi Richard,
    I thinks the file on the root directory of a SharePoint site is unable to be set with a unique permission, SharePoint securable object are web, list/library, list/library iteml, as what you're going to do, the workaround is
    to put the file in a libary and grant the unique permission.
    http://office.microsoft.com/en-001/windows-sharepoint-services-help/about-controlling-access-to-sites-and-site-content-HA010100144.aspx?CTT=5&origin=HA010100149
    http://office.microsoft.com/en-001/windows-sharepoint-services-help/manage-permissions-for-a-list-library-folder-document-or-list-item-HA010021564.aspx
    http://blogs.msdn.com/b/chandru/archive/2012/04/01/list-of-all-securable-objects-that-have-unique-permission.aspx
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

Maybe you are looking for

  • ITunes & Windows Vista

    As far as I can see, there's still no way to solve compatibility problems between iTunes and Windows Vista. I can't even install iTunes 7.1.1. ("no win32 application","no VBScript installed"), and so, my 30GBipod still waits to be fed again. Could it

  • I'm unknowingly getting logged off.

    Okay, I have read through pages of posts, I've even made the 443 change. So far I haven't read anything that has helped. While I am logged onto iChat, I randomly get disconnected but it doesn't show that I have been until I've sent a few messages. Th

  • I am unable to download the 10.7 update of Itunes

    it says an error has occurred every time i try. I uninstalled and tried to reinstall, that has also failed leaving me with out any access. Please help

  • Cannot see wiki calendars

    Recreated user's profile in workgroup manager post that cannot see previous or old wiki calendars but can create new calendars Permissions for this user appears to be fine. Could import user's calendars to iCal application into that user's profile An

  • BEx Analyzer Varibale screen cancellation results in inactive buttons

    Hi All, In my workbook when I cancel the variable screen pop up it results in an inactive workbook. That is, after the cancellation the buttons will not work. We cannot do any operation in it. We can only work in the workbook once we enter the design