The File Ownership & Access Manager Widget

Functions

Screenshots

Let's say you get a list of files on the screen (You can do it through a command-line ls). The files are displayed with the appropriate file type icons. When you right-click on any of them, you get a list of possible operations to perform on files. One of those options is to change file ownership and access permissions.

Choosing this option pops up the Foam widget (File Ownership and Access Manager) as shown:

The file selected appears in the File box. More than one file may appear in this box, separated by spaces, if they were multi-selected before this option was called up.

The File Button

Clicking the File button calls the File Selector widget.
This widget helps to specify a file, or a set of files, in a number of ways. Depending on the file(s) chosen, the Foam widget's effect may be one of the following:

chmod 754 myexec
(Simple file naming)
or
chmod 754 [aA]temp*.c
(A set of files specified through a regular expression)
or
for i in myexec templist a.out; do
    chmod 754 $i
done
(A set of files specified through mouse selection)
or
find . -name blah\* -type f -exec chmod 754 {} \;
(A set of files specified through a find condition)

The User and Group Buttons

Clicking the User or Group buttons pops up selection windows for users and groups, respectively, as shown below.

The current file owners (user or group) will be highlighted in these selction windows by default. File ownership can be changed by selecting a different user and/or group from these selection windows. Read, Write and Execute permissions can be changed by checking different checkboxes. If a permission is to be granted to all, the corresponding All checkbox can be checked. All the checkboxes in that column will automatically be checked.

The Run as checkboxes set the S-bits of the file to change the effective user ID and effective group ID of the process running it. As before, checking the Run as checkbox for All will automatically set both the uid and gid.

Supporting Free Software

This page hosted by Get your own Free Home Page
1