user folder
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 7285
Group User Folder 3.54.2
Group User Folder provides a Zope Product that manages Groups of Users. more>>
Group User Folder provides a Zope Product that manages Groups of Users.
GroupUserFolder is a kind of user folder that provides a special kind of user management. Some users are "flagged" as GROUP and then normal users will be able to belong to one or serveral groups.
Enhancements:
- Fix _getMemberIds for LDAPUserFolder 2.7 when groups are stored in LDAPUF [encolpe]
- Got rid of zLOG in favor of logging. [stefan]
<<lessGroupUserFolder is a kind of user folder that provides a special kind of user management. Some users are "flagged" as GROUP and then normal users will be able to belong to one or serveral groups.
Enhancements:
- Fix _getMemberIds for LDAPUserFolder 2.7 when groups are stored in LDAPUF [encolpe]
- Got rid of zLOG in favor of logging. [stefan]
Download (0.50MB)
Added: 2007-02-09 License: GPL (GNU General Public License) Price:
988 downloads
ACASUserFolder 2.0.2
ACASUserFolder is a User Folder implementing the Yale CAS Single Sign On (SSO) Authentication method. more>>
ACASUserFolder is a User Folder implementing the Yale CAS Single Sign On (SSO) Authentication method.
It aims are interoperability, robustness, security and end user simplicity. This project started at the Bordeaux 1 University as a proof of concept for Plone integration in a CASified esup-portal environment.
This Product was formerly known as CASUserFolder but has been renamed to avoid name conflict with another similar product.
Main features:
- Yale CAS architectures 1.0 & 2.0
- Plone Support
- GroupUserFolder support (patch for versions < 3.3)
- Support for POST and GET methods arguments
- Auto-login without adding login button to your site
- clean implementation : doesnt patch anything in the running zope instance
- management tab for testing CAS login
- default roles for CAS Users
- optional persistent users for assigning local roles
- online help
Compatibility:
- python 2.1 (see note below) / 2.2 / 2.3
- Zope : tested with 2.6.2 / 2.7.1 / 2.7.4 / 2.7.5 / 2.8.0 / 2.8.1
- Plone : tested with 2.0.5 & 2.1
- GoupUserFolder (need patch for versions < 3.3)
- CookieCrumbler
- VirtualHostMonster proof (groarrrr)
Installation:
Uncompress the tarball in your Zope Products directory. Under GNU/Linux This is something like:
/usr/lib/zope/lib/python/Products/
Next restart Zope to take the product into account.
Enhancements:
- FIX: deactivated verbose debug output
<<lessIt aims are interoperability, robustness, security and end user simplicity. This project started at the Bordeaux 1 University as a proof of concept for Plone integration in a CASified esup-portal environment.
This Product was formerly known as CASUserFolder but has been renamed to avoid name conflict with another similar product.
Main features:
- Yale CAS architectures 1.0 & 2.0
- Plone Support
- GroupUserFolder support (patch for versions < 3.3)
- Support for POST and GET methods arguments
- Auto-login without adding login button to your site
- clean implementation : doesnt patch anything in the running zope instance
- management tab for testing CAS login
- default roles for CAS Users
- optional persistent users for assigning local roles
- online help
Compatibility:
- python 2.1 (see note below) / 2.2 / 2.3
- Zope : tested with 2.6.2 / 2.7.1 / 2.7.4 / 2.7.5 / 2.8.0 / 2.8.1
- Plone : tested with 2.0.5 & 2.1
- GoupUserFolder (need patch for versions < 3.3)
- CookieCrumbler
- VirtualHostMonster proof (groarrrr)
Installation:
Uncompress the tarball in your Zope Products directory. Under GNU/Linux This is something like:
/usr/lib/zope/lib/python/Products/
Next restart Zope to take the product into account.
Enhancements:
- FIX: deactivated verbose debug output
Download (0.027MB)
Added: 2005-10-18 License: ZPL (Zope Public License) Price:
1467 downloads
Amarok Folder Icons 0.2
Amarok Folder Icons script will scan the current directory and sub directories for music, and set all the folder icons. more>>
Amarok has a built-in function for setting the icon for folders (the one that displays in Konqueror etc) to be the cover image for the album it contains. However, it only works if you let it recognize your music.
Amarok Folder Icons script will scan the current directory and sub directories for music, and set all the folder icons where it can determine that the folder contains tracks from just one album.
This works best if you store your albums in a flat structure e.g.
/path/to/your/music/artist name - album name/
Installation:
Copy the script to your main music directory, and make it executable:
At a terminal:
$ chmod +x make_amarok_folder_icons.py
Usage:
At a terminal:
$ cd /to/your/music/folder
$ ./make_amarok_folder_icons.py
<<lessAmarok Folder Icons script will scan the current directory and sub directories for music, and set all the folder icons where it can determine that the folder contains tracks from just one album.
This works best if you store your albums in a flat structure e.g.
/path/to/your/music/artist name - album name/
Installation:
Copy the script to your main music directory, and make it executable:
At a terminal:
$ chmod +x make_amarok_folder_icons.py
Usage:
At a terminal:
$ cd /to/your/music/folder
$ ./make_amarok_folder_icons.py
Download (0.006MB)
Added: 2007-07-24 License: Public Domain Price:
506 downloads
Aerials-Kde
Aerials-Kde is a KDE style. more>>
Aerials-Kde is a KDE style.
Installation:
Extract Aerials-style.tar.bz2:
In Kde control panel import Aerials.kcsrc for color scheme and Aerials.qtcurve for the qtcurve style with custom colors and widgets.
Extract Aerials-deKorator.tar.bz2:
Copy the folder under your deKorator directory (usually /home/YOUR-USER/.kde/share/apps/deKorator/themes)
Extract Aerials-wallpapers.tar.bz2:
Copy the wallpapers in your wallpapers dir! :) Custom them with color gradients for nice effects!
<<lessInstallation:
Extract Aerials-style.tar.bz2:
In Kde control panel import Aerials.kcsrc for color scheme and Aerials.qtcurve for the qtcurve style with custom colors and widgets.
Extract Aerials-deKorator.tar.bz2:
Copy the folder under your deKorator directory (usually /home/YOUR-USER/.kde/share/apps/deKorator/themes)
Extract Aerials-wallpapers.tar.bz2:
Copy the wallpapers in your wallpapers dir! :) Custom them with color gradients for nice effects!
Download (0.83MB)
Added: 2007-03-02 License: GPL (GNU General Public License) Price:
975 downloads
PloneFolderOrder 1.01
PloneFolderOrder is a project that allows you to keep an order on any content inside your Plone Folders. more>>
As Plone does not offer this functionality yet, PloneFolderOrder is a solution that works in todays Plone sites. Once integrated into Plone, it will become obsolete for newer versions of Plone, but there are enough Plone sites that need this functionality today to justify this temporary solution.
The difference to other solutions that store order information inside content objects themselves, PloneFolderOder stores order information in Plone Folders (Therefore the name PloneFolderOrder). Storing content order in a Plone Folder is preferable, because when the ordering changes, you only have to change a single object, the Plone Folder itself. The only drawback is that content objects have to query their container to know their place in the order.
The order screen of Plone Folders contains the list of the folders content, and the user can order the content.
The standard Plone views, and most importantly the navigation tree, are respecting the order set by users.
It is a full-fledged Plone product, installable and uninstallable using the QuickInstaller Tool.
Enhancements:
- Bug Correction : restarting zope will not delete the method getParentFromFolder
<<lessThe difference to other solutions that store order information inside content objects themselves, PloneFolderOder stores order information in Plone Folders (Therefore the name PloneFolderOrder). Storing content order in a Plone Folder is preferable, because when the ordering changes, you only have to change a single object, the Plone Folder itself. The only drawback is that content objects have to query their container to know their place in the order.
The order screen of Plone Folders contains the list of the folders content, and the user can order the content.
The standard Plone views, and most importantly the navigation tree, are respecting the order set by users.
It is a full-fledged Plone product, installable and uninstallable using the QuickInstaller Tool.
Enhancements:
- Bug Correction : restarting zope will not delete the method getParentFromFolder
Download (0.052MB)
Added: 2007-02-12 License: GPL (GNU General Public License) Price:
984 downloads
Fast Icon Users for Linux -
User icons with functions like: add, chat, edit, offline, remove, send, upload more>> Description:
11 icons of users.
Content:
User icons with functions like: add, chat, edit, offline, remove, send, upload, user, user group, video chat, voice chat<<less
Download (313KB)
Added: 2009-04-04 License: Freeware Price:
211 downloads
User::Identity 0.91
User::Identity is a Perl module that maintains info about a physical person. more>>
User::Identity is a Perl module that maintains info about a physical person.
INHERITANCE
User::Identity
is an User::Identity::Item
SYNOPSIS
use User::Identity;
my $me = User::Identity->new
( john
, firstname => John
, surname => Doe
);
print $me->fullName # prints "John Doe"
print $me; # same
The User::Identity object is created to maintain a set of informational objects which are related to one user. The User::Identity module tries to be smart providing defaults, conversions and often required combinations.
The identities are not implementing any kind of storage, and can therefore be created by any simple or complex Perl program. This way, it is more flexible than an XML file to store the data. For instance, you can decide to store the data with Data::Dumper, Storable, DBI, AddressBook or whatever. Extension to simplify this task are still to be developed.
If you need more kinds of user information, then please contact the module author.
<<lessINHERITANCE
User::Identity
is an User::Identity::Item
SYNOPSIS
use User::Identity;
my $me = User::Identity->new
( john
, firstname => John
, surname => Doe
);
print $me->fullName # prints "John Doe"
print $me; # same
The User::Identity object is created to maintain a set of informational objects which are related to one user. The User::Identity module tries to be smart providing defaults, conversions and often required combinations.
The identities are not implementing any kind of storage, and can therefore be created by any simple or complex Perl program. This way, it is more flexible than an XML file to store the data. For instance, you can decide to store the data with Data::Dumper, Storable, DBI, AddressBook or whatever. Extension to simplify this task are still to be developed.
If you need more kinds of user information, then please contact the module author.
Download (0.025MB)
Added: 2007-04-11 License: Perl Artistic License Price:
926 downloads
User::Utmp 1.8
User::Utmp is a Perl access to utmp- and utmpx-style databases. more>>
User::Utmp is a Perl access to utmp- and utmpx-style databases.
SYNOPSIS
use User::Utmp qw(:constants :utmpx);
@utmp = getutx();
or, using utmp:
use User::Utmp qw(:constants :utmp);
@utmp = getut();
UNIX systems record information about current and past logins in a user accounting database. This database is realized by two files: File utmpx contains a record of all users currently logged onto the system, while file wtmpx contains a record of all logins and logouts. Some systems (such as HP-UX and AIX) also maintain a third file containing failed login attempts. The information in these files is used by commands such as who(1), last(1), write(1), or login(1).
The exact location of these files in the file system varies between operating systems, but they are typically stored in directories like /var/adm, /var/run, or /var/log. The Single UNIX Specification specifies an API for reading from and writing to these files.
The utmpx file format and functions were derived from the older utmp file format and functions. For compatibility reasons, many systems still support the utmp functions and maintain utmp database files. It is recommended, however, to use the utmpx functions instead of the obsolete utmp functions.
The User::Utmp module provides functions for reading and writing utmpx and utmp files by providing a Perl interface to the system functions.
Utmpx and utmp records are represented in Perl by hash references. The hash keys are the names of the elements of the utmpx structure. For details consult utmpx(4) (utmpx(5) on some systems). The hash values are (mostly) the same as in C.
As an example, here is a typical record as it may be returned by the getutxent(), getutxid(), getutxline() or the corresponding utmp functions:
{ut_tv => {tv_sec => 1141256698, tv_usec => 0},
ut_line => "ttyp0",
ut_time => 1141256698,
ut_id => "p0",
ut_host => ":0.0",
ut_exit => {e_termination => 0, e_exit => 2},
ut_pid => 4577,
ut_user => "mxp",
ut_type => USER_PROCESS,}
The array returned by the getutx() and getut() functions is composed of hash references like this.
<<lessSYNOPSIS
use User::Utmp qw(:constants :utmpx);
@utmp = getutx();
or, using utmp:
use User::Utmp qw(:constants :utmp);
@utmp = getut();
UNIX systems record information about current and past logins in a user accounting database. This database is realized by two files: File utmpx contains a record of all users currently logged onto the system, while file wtmpx contains a record of all logins and logouts. Some systems (such as HP-UX and AIX) also maintain a third file containing failed login attempts. The information in these files is used by commands such as who(1), last(1), write(1), or login(1).
The exact location of these files in the file system varies between operating systems, but they are typically stored in directories like /var/adm, /var/run, or /var/log. The Single UNIX Specification specifies an API for reading from and writing to these files.
The utmpx file format and functions were derived from the older utmp file format and functions. For compatibility reasons, many systems still support the utmp functions and maintain utmp database files. It is recommended, however, to use the utmpx functions instead of the obsolete utmp functions.
The User::Utmp module provides functions for reading and writing utmpx and utmp files by providing a Perl interface to the system functions.
Utmpx and utmp records are represented in Perl by hash references. The hash keys are the names of the elements of the utmpx structure. For details consult utmpx(4) (utmpx(5) on some systems). The hash values are (mostly) the same as in C.
As an example, here is a typical record as it may be returned by the getutxent(), getutxid(), getutxline() or the corresponding utmp functions:
{ut_tv => {tv_sec => 1141256698, tv_usec => 0},
ut_line => "ttyp0",
ut_time => 1141256698,
ut_id => "p0",
ut_host => ":0.0",
ut_exit => {e_termination => 0, e_exit => 2},
ut_pid => 4577,
ut_user => "mxp",
ut_type => USER_PROCESS,}
The array returned by the getutx() and getut() functions is composed of hash references like this.
Download (0.011MB)
Added: 2007-04-10 License: Perl Artistic License Price:
929 downloads
Squid Users Manager 1.2.0
Squid Users Manager is a web-enabled and intuitive user interface that manager Squid Proxy NCSA auth users. more>>
Squid Users Manager is a web-enabled and intuitive user interface written upon Ruby on Rails web development framework that manager Squid Proxy NCSA auth users across MD5 digest files.
The project is Open Source and distributed under the terms of the GPL licence.
Enhancements:
- Application Web 2.0 compliant
- New design with css and light layout.
- Ajax enabled app.
- More intuitive and elegant application.
<<lessThe project is Open Source and distributed under the terms of the GPL licence.
Enhancements:
- Application Web 2.0 compliant
- New design with css and light layout.
- Ajax enabled app.
- More intuitive and elegant application.
Download (1.4MB)
Added: 2006-10-18 License: GPL (GNU General Public License) Price:
1125 downloads
mod_auth_user_dir 1.0
mod_auth_user_dir is a module for Apache 2, you can create private user folders using WebDAV protocol. more>>
mod_auth_user_dir is a module for Apache 2, you can create private user folders using WebDAV protocol. Users have only permissions to access to their own directory. Without this module, a htaccess file must be created inside every user folder. This is completely unmanageable when the number of users is big.
We can build a file server accessible from Windows and Linux using WebDAV and a web server like Apache. Because the protocol is build upon HTTP, the server uses ports TCP 80 (HTTP) and TCP 443 (HTTPS). These ports are commonly open in firewalls without any other special requirement.
User authentication (login and password) are delegated to other Apache modules like mod_auth_ldap.
Installation:
download the binary or compile the source. It should work with all Apache 2.x versions.
install the module with /usr/local/apache2/bin/apxs -i -a -n auth_user_dir libmod_auth_user_dir.la
configure directory options in httpd.conf. Option AUTHUSERDIRROOT can be defined for every Directory, and it is the root folder where user folders will be created.
restart Apache: apachectl restart
<<lessWe can build a file server accessible from Windows and Linux using WebDAV and a web server like Apache. Because the protocol is build upon HTTP, the server uses ports TCP 80 (HTTP) and TCP 443 (HTTPS). These ports are commonly open in firewalls without any other special requirement.
User authentication (login and password) are delegated to other Apache modules like mod_auth_ldap.
Installation:
download the binary or compile the source. It should work with all Apache 2.x versions.
install the module with /usr/local/apache2/bin/apxs -i -a -n auth_user_dir libmod_auth_user_dir.la
configure directory options in httpd.conf. Option AUTHUSERDIRROOT can be defined for every Directory, and it is the root folder where user folders will be created.
restart Apache: apachectl restart
Download (0.009MB)
Added: 2006-05-24 License: GPL (GNU General Public License) Price:
1248 downloads
Mutt Folder List 1.5.16-20070704
Mutt Folder List is a mutt patch that adds a sidebar showing all mail folders. more>>
Mutt Folder List is a mutt patch that adds a sidebar showing all mail folders and the total and number of new messages each contains.
Mutt Folder List project allows users to hide or display the sidebar with a single keystroke, and optionally highlights folders with new messages. Users can scroll up and down the list of folders and open the selected folder, and configure the sidebar width, colors, and key bindings.
Mutt is the mail client of choice for people who are wary of fancy graphical user interfaces. I do like Mozilla Thunderbird, Balsa, and even Outlook Express. My biggest problem with all of these mail clients, however, is that I cannot use Vim to write my emails.
Unfortunately, though, mutt lacks an important feature that most email clients do have: a folder list that allows you to see all mail folders you have and how many (new) emails they each contain.
Justin Hibbits wrote a mutt patch that is an approximate fix to this problem. I helped him by adding some features and fixing some bugs.
Main features:
- A sidebar with a list of folders on the left side of the mutt window.
- Hide/Unhide the sidebar with a single keystroke.
- Every line in the sidebar lists a folder with the total and new number of messages in it.
- Optionally highlight folders with new messages.
- Scroll up and down the list of folders and open the selected folder.
- Configurable sidebar width and colors.
- Configurable key bindings.
Enhancements:
- This release updates the sidebar patch for pristine Mutt 1.5.16.
<<lessMutt Folder List project allows users to hide or display the sidebar with a single keystroke, and optionally highlights folders with new messages. Users can scroll up and down the list of folders and open the selected folder, and configure the sidebar width, colors, and key bindings.
Mutt is the mail client of choice for people who are wary of fancy graphical user interfaces. I do like Mozilla Thunderbird, Balsa, and even Outlook Express. My biggest problem with all of these mail clients, however, is that I cannot use Vim to write my emails.
Unfortunately, though, mutt lacks an important feature that most email clients do have: a folder list that allows you to see all mail folders you have and how many (new) emails they each contain.
Justin Hibbits wrote a mutt patch that is an approximate fix to this problem. I helped him by adding some features and fixing some bugs.
Main features:
- A sidebar with a list of folders on the left side of the mutt window.
- Hide/Unhide the sidebar with a single keystroke.
- Every line in the sidebar lists a folder with the total and new number of messages in it.
- Optionally highlight folders with new messages.
- Scroll up and down the list of folders and open the selected folder.
- Configurable sidebar width and colors.
- Configurable key bindings.
Enhancements:
- This release updates the sidebar patch for pristine Mutt 1.5.16.
Download (3.0MB)
Added: 2007-07-05 License: GPL (GNU General Public License) Price:
842 downloads
Gimp User Manual 0.12
GIMP User Manual project is a user manual for the GIMP. more>>
GIMP User Manual project is a user manual for the GIMP. It is written for the GIMP Help Browser, but can produce help pages for other formats as well.
Enhancements:
- New content (incl. spelling and grammar fixes) for German, French, Italian, Norwegian, Russian, Spanish and Korean
- The PDF version of the manual is now generated using dblatex
- Lots of bug fixes
<<lessEnhancements:
- New content (incl. spelling and grammar fixes) for German, French, Italian, Norwegian, Russian, Spanish and Korean
- The PDF version of the manual is now generated using dblatex
- Lots of bug fixes
Download (40MB)
Added: 2007-03-08 License: (FDL) GNU Free Documentation License Price:
975 downloads
User::Identity::Archive 0.90
User::Identity::Archive is a base class for archiving user information. more>>
User::Identity::Archive is a base class for archiving user information.
INHERITANCE
User::Identity::Archive
is a User::Identity::Item
User::Identity::Archive is extended by
User::Identity::Archive::Plain
SYNOPSIS
use User::Identity::Archive::Plain;
my $friends = User::Identity::Archive::Plain->new(friends);
$friends->from(*FH);
$friends->from(.friends);
An archive stores collections. It depends on the type of archive how and where that is done. Some archivers may limit the kinds of selections which can be stored.
<<lessINHERITANCE
User::Identity::Archive
is a User::Identity::Item
User::Identity::Archive is extended by
User::Identity::Archive::Plain
SYNOPSIS
use User::Identity::Archive::Plain;
my $friends = User::Identity::Archive::Plain->new(friends);
$friends->from(*FH);
$friends->from(.friends);
An archive stores collections. It depends on the type of archive how and where that is done. Some archivers may limit the kinds of selections which can be stored.
Download (0.025MB)
Added: 2006-06-28 License: Perl Artistic License Price:
1214 downloads
User::grent 5.8.8
User::grent is an interface to Perls built-in getgr*() functions. more>>
User::grent is an interface to Perls built-in getgr*() functions.
SYNOPSIS
use User::grent;
$gr = getgrgid(0) or die "No group zero";
if ( $gr->name eq wheel && @{$gr->members} > 1 ) {
print "gid zero name wheel, with other members";
}
use User::grent qw(:FIELDS);
getgrgid(0) or die "No group zero";
if ( $gr_name eq wheel && @gr_members > 1 ) {
print "gid zero name wheel, with other members";
}
$gr = getgr($whoever);
This modules default exports override the core getgrent(), getgruid(), and getgrnam() functions, replacing them with versions that return "User::grent" objects. This object has methods that return the similarly named structure field name from the Cs passwd structure from grp.h; namely name, passwd, gid, and members (not mem). The first three return scalars, the last an array reference.
You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that this still overrides your core functions.) Access these fields as variables named with a preceding gr_. Thus, $group_obj->gid() corresponds to $gr_gid if you import the fields. Array references are available as regular array variables, so @{ $group_obj->members() } would be simply @gr_members.
The getpw() function is a simple front-end that forwards a numeric argument to getpwuid() and the rest to getpwnam().
To access this functionality without the core overrides, pass the use an empty import list, and then access function functions with their full qualified names. On the other hand, the built-ins are still available via the CORE:: pseudo-package.
<<lessSYNOPSIS
use User::grent;
$gr = getgrgid(0) or die "No group zero";
if ( $gr->name eq wheel && @{$gr->members} > 1 ) {
print "gid zero name wheel, with other members";
}
use User::grent qw(:FIELDS);
getgrgid(0) or die "No group zero";
if ( $gr_name eq wheel && @gr_members > 1 ) {
print "gid zero name wheel, with other members";
}
$gr = getgr($whoever);
This modules default exports override the core getgrent(), getgruid(), and getgrnam() functions, replacing them with versions that return "User::grent" objects. This object has methods that return the similarly named structure field name from the Cs passwd structure from grp.h; namely name, passwd, gid, and members (not mem). The first three return scalars, the last an array reference.
You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that this still overrides your core functions.) Access these fields as variables named with a preceding gr_. Thus, $group_obj->gid() corresponds to $gr_gid if you import the fields. Array references are available as regular array variables, so @{ $group_obj->members() } would be simply @gr_members.
The getpw() function is a simple front-end that forwards a numeric argument to getpwuid() and the rest to getpwnam().
To access this functionality without the core overrides, pass the use an empty import list, and then access function functions with their full qualified names. On the other hand, the built-ins are still available via the CORE:: pseudo-package.
Download (12.2MB)
Added: 2007-04-10 License: Perl Artistic License Price:
927 downloads
User::pwent 5.8.8
User::pwent is a Perl interface getpw*() functions. more>>
User::pwent is a Perl interface getpw*() functions.
SYNOPSIS
use User::pwent;
$pw = getpwnam(daemon) || die "No daemon user";
if ( $pw->uid == 1 && $pw->dir =~ m#^/(bin|tmp)?z#s ) {
print "gid 1 on root dir";
}
$real_shell = $pw->shell || /bin/sh;
for (($fullname, $office, $workphone, $homephone) =
split /s*,s*/, $pw->gecos)
{
s/&/ucfirst(lc($pw->name))/ge;
}
use User::pwent qw(:FIELDS);
getpwnam(daemon) || die "No daemon user";
if ( $pw_uid == 1 && $pw_dir =~ m#^/(bin|tmp)?z#s ) {
print "gid 1 on root dir";
}
$pw = getpw($whoever);
use User::pwent qw/:DEFAULT pw_has/;
if (pw_has(qw[gecos expire quota])) { .... }
if (pw_has("name uid gid passwd")) { .... }
print "Your struct pwd has: ", scalar pw_has(), "n";
This modules default exports override the core getpwent(), getpwuid(), and getpwnam() functions, replacing them with versions that return User::pwent objects. This object has methods that return the similarly named structure field name from the Cs passwd structure from pwd.h, stripped of their leading "pw_" parts, namely name, passwd, uid, gid, change, age, quota, comment, class, gecos, dir, shell, and expire. The passwd, gecos, and shell fields are tainted when running in taint mode.
You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that this still overrides your core functions.) Access these fields as variables named with a preceding pw_ in front their method names. Thus, $passwd_obj->shell corresponds to $pw_shell if you import the fields.
The getpw() function is a simple front-end that forwards a numeric argument to getpwuid() and the rest to getpwnam().
To access this functionality without the core overrides, pass the use an empty import list, and then access function functions with their full qualified names. The built-ins are always still available via the CORE:: pseudo-package.
<<lessSYNOPSIS
use User::pwent;
$pw = getpwnam(daemon) || die "No daemon user";
if ( $pw->uid == 1 && $pw->dir =~ m#^/(bin|tmp)?z#s ) {
print "gid 1 on root dir";
}
$real_shell = $pw->shell || /bin/sh;
for (($fullname, $office, $workphone, $homephone) =
split /s*,s*/, $pw->gecos)
{
s/&/ucfirst(lc($pw->name))/ge;
}
use User::pwent qw(:FIELDS);
getpwnam(daemon) || die "No daemon user";
if ( $pw_uid == 1 && $pw_dir =~ m#^/(bin|tmp)?z#s ) {
print "gid 1 on root dir";
}
$pw = getpw($whoever);
use User::pwent qw/:DEFAULT pw_has/;
if (pw_has(qw[gecos expire quota])) { .... }
if (pw_has("name uid gid passwd")) { .... }
print "Your struct pwd has: ", scalar pw_has(), "n";
This modules default exports override the core getpwent(), getpwuid(), and getpwnam() functions, replacing them with versions that return User::pwent objects. This object has methods that return the similarly named structure field name from the Cs passwd structure from pwd.h, stripped of their leading "pw_" parts, namely name, passwd, uid, gid, change, age, quota, comment, class, gecos, dir, shell, and expire. The passwd, gecos, and shell fields are tainted when running in taint mode.
You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that this still overrides your core functions.) Access these fields as variables named with a preceding pw_ in front their method names. Thus, $passwd_obj->shell corresponds to $pw_shell if you import the fields.
The getpw() function is a simple front-end that forwards a numeric argument to getpwuid() and the rest to getpwnam().
To access this functionality without the core overrides, pass the use an empty import list, and then access function functions with their full qualified names. The built-ins are always still available via the CORE:: pseudo-package.
Download (12.2MB)
Added: 2007-04-10 License: Perl Artistic License Price:
928 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above user folder search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed