nxtools
0.2.0-preview0002
Collection of Posix tools wrappers.
Minimum PowerShell version
6.2
See the version list below for details.
Installation Options
Owners
Copyright
(c) SynEdgy Limited. All rights reserved.
Package Details
Author(s)
- Gael Colas
Tags
Functions
Compare-nxMode Get-nxChildItem Get-nxItem Set-nxGroupOwnership Set-nxMode Set-nxOwner Get-nxDistributionInfo Get-nxKernelInfo Get-nxLinuxStandardBaseRelease Add-nxLocalGroupMember Get-nxLocalGroup Get-nxLocalUser Get-nxLocalUserMemberOf New-nxLocalGroup New-nxLocalUser Remove-nxLocalGroup Remove-nxLocalGroupMember Remove-nxLocalUser Set-nxLocalGroup Set-nxLocalGroupMember
PSEditions
Dependencies
This module has no dependencies.
Release Notes
## [0.2.0-preview0002] - 2021-04-15
### Added
- Initial addition of commandd:
- `Get-nxKernelInfo`: A simple wrapper around `uname -a`.
- `Get-nxLinuxStandardBaseRelease`: A quick wrap of `lsb_release -a` command (this `lsb_release` must be present on the system).
- `Get-nxDistributionInfo`: Parsing information found in `/etc/*-release`.
- `Get-nxItem`: Similar to Get-Item for file system provider but on Linux using `ls -d`.
- `Get-nxChildItem`: Similar to Get-ChildItem for the FileSystem provider but on Linux, this will use the `ls` command.
- `Compare-nxFileSystemMode`: An easy way to compare two sets of unix file system permissions.
You can use a Symbolic notation (`rwxrwxrwx`), or the numericla permission (`777` or `0777`).
- `Get-nxLocalUser`: Read and parse local users from `/etc/passwd`.
- `Get-nxLocalGroup`: Read and parse local groups from `/etc/group`.
- `Set-nxMode`: Set files and folder mode (permisisons) using `chmod`.
- `Set-nxOwner`: Set the owner for files and folders (and optionally the group ownership) using `chown`.
- `Set-nxGroupOwnership`: Set the group owning the files and folders using `chgrp`.
- `Get-nxLocalUserMemberOf`: Get the groups (`[nxLocalGroup[]]`) a Local user is member of.
- `New-nxLocalUser`: Creates a new Local User using `useradd`.
- `Add-nxLocalGroupMember`: Add a user to a group using `useradd`.
- `New-nxLocalGroup`: Create a new Local Group using `groupadd`.
- `Set-nxLocalGroup`: Set the properties of an existing local group using `gpasswd`.
- `Set-nxLocalGroupMember`: Set (and replace) the members of an existing group using `gpasswd`.
- `Remove-nxLocalUser`: Delete a Local user using `userdel`.
- `Remove-nxLocalGroupMember`: Removes a user from a local group using `gpasswd`.
- `Remove-nxLocalGroup`: Deletes a local group using `groupdel`.
- Supporting Enums and Classes for File System permissions.
- In order to make interpretation, Comparison, and manipulation of File system permissions easier,
the module implements a few classes and enum to make that work.
### Changed
- Moved source in subfolders per categories (File/Folders, User/Groups).
- Testing using Git Tools task (the new GitVersion).
### Fixed
- Fixed the main branch to release from to be `main` instead of `master`.
- Removing the 'Configure winrm' tasks (as we're only running on linux).
- Added the DocGenerator tasks to build.yaml.
- Fixed casing to `nxtools` because I can't change PSGallery package casing.
- Removing dupplicate files.
FileList
- nxtools.nuspec
- nxtools.psm1
- nxtools.psd1
- en-US\about_nxtools.help.txt
- en-US\nxtools.strings.psd1
- Modules\DscResource.Common\0.10.2\DscResource.Common.psd1
- Modules\DscResource.Common\0.10.2\DscResource.Common.psm1
- Modules\PSNativeCmdDevKit\0.1.0\PSNativeCmdDevKit.psd1
- Modules\PSNativeCmdDevKit\0.1.0\PSNativeCmdDevKit.psm1
- Modules\DscResource.Common\0.10.2\en-US\about_DscResource.Common.help.txt
- Modules\DscResource.Common\0.10.2\en-US\DscResource.Common.strings.psd1
- Modules\PSNativeCmdDevKit\0.1.0\en-US\about_PSNativeCmdDevKit.help.txt
- Modules\PSNativeCmdDevKit\0.1.0\en-US\PSNativeCmdDevKit.strings.psd1
Version History
Version | Downloads | Last updated |
---|---|---|
1.4.0 | 4,098 | 2/8/2024 |
1.3.0 | 1,530 | 10/12/2023 |
1.2.0 | 611 | 9/8/2023 |
1.1.0 | 663 | 7/18/2023 |
1.0.0 | 214 | 5/25/2023 |
0.4.0-previe... | 115 | 3/16/2023 |
0.3.0-previe... | 41 | 3/22/2022 |
0.2.1-previe... | 18 | 1/13/2022 |
0.2.1-previe... | 15 | 7/2/2021 |
0.2.1-previe... | 13 | 7/2/2021 |
0.2.0 | 418 | 5/25/2021 |
0.2.0-previe... | 13 | 5/24/2021 |
0.2.0-previe... (current version) | 18 | 4/15/2021 |
0.2.0-previe... | 17 | 4/7/2021 |
0.1.1-previe... | 14 | 4/7/2021 |
0.1.1-previe... | 20 | 4/6/2021 |
0.1.1-previe... | 15 | 4/3/2021 |
0.1.1-previe... | 14 | 4/3/2021 |
0.1.1-previe... | 15 | 4/2/2021 |