9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Below is my script that works fine and prints the desired output:
#!/bin/ksh
echo "$1" |
while IFS= read -r dirpath
do
echo "DIRR_PATH:$dirpath"
install_dir=$install_dir" "$dirpath
done
echo "Desired Output:$install_dir"
Output:
./loopissue.sh... (10 Replies)
Discussion started by: mohtashims
10 Replies
2. Cybersecurity
Is it possible, either by software solution or configuration, to provision a single user account that has different passwords depending on what group of servers it is attempting to connect to?
We have a dev, sit, uat, and production environment. They want to be able to set passwords in dev for... (2 Replies)
Discussion started by: Blackacid
2 Replies
3. UNIX for Dummies Questions & Answers
Thanks
AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies
4. UNIX for Dummies Questions & Answers
hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies
5. SCO
I am running SCO on a Netfinity system and two crons are started on bootup, but only after the system is brought down hard. i.e. running haltsys, reboot, or by a power outage. Has anyone seen this before and know a resolution to stop it? (0 Replies)
Discussion started by: ertzman
0 Replies
6. UNIX for Dummies Questions & Answers
I understand that Unix and it's counterparts are OSs, but would it be possible to just install them to a single user account? I'm using a family computer, whose other users want nothing more complicated on the computer than Internet Explorer, but I want to install Ubuntu so I can easily host my... (6 Replies)
Discussion started by: migigicoko
6 Replies
7. AIX
Hi,
I have a query that suppose the first or last name of the user changes and we need to change its userid for aix too. Then in that case how do we handle this scenario??I guess we can't change the user id so we should re-create the new id and associate all the data of the old id. But I donno... (1 Reply)
Discussion started by: tintin@10
1 Replies
8. Shell Programming and Scripting
Hi,
Can someone let me know how I can acheive the following.
I have ~ delimited file and I need to convert into something like SQL insert statements.
SrcFile :
1~sjdsdj~asasas~
2~aaaaa~qwqwqwq~qwq
.....
I tried
AWK -F"~" '{print "INSERT INTO XX VALUES("$1 " ,\' "$2" \' , \' "$3 }'... (3 Replies)
Discussion started by: braindrain
3 Replies
9. UNIX for Dummies Questions & Answers
System = SCO UnixWare 7.1.1
Using the following command...
ap -dgv > users.ap
... I should be able to dump all 250 user profiles to the file "users.ap" and display the results for each account as it is added to the file. The problem is that I only get the following output:
UX:ap: INFO:... (0 Replies)
Discussion started by: rm -r *
0 Replies
profiles(1) BSD General Commands Manual profiles(1)
NAME
profiles -- Profiles Tool for macOS.
SYNOPSIS
profiles verb [options]
DESCRIPTION
profiles is used to install, remove, list, or otherwise handle various profile types on macOS.
Note that the command parameters have changed starting in version 5.0 of this tool, but the older options are still valid and can also be
used. Use the man profiles.old(1) page to view the old parameters. These older style options will not be updated to provide support for
some of the newer profiles tool features, so it's suggested you move to use the new parameter structure.
To prevent unintended installations, profiles containing certain payloads (specifically com.apple.Safari) will require a manual verification
even when running as root.
VERBS
Each command verb is listed with its description and optional individual arguments. Most commands use the -type option to determine which
kind of profile should be used in the command. For those commands, if no type is specified, the default will be to use the configuration
profile type.
help
Shows abbreviated help
list -type profile_type -user user_name -output output_path
List profiles for a user or when running as root, the device. When listing startup profiles, only profiles that have not yet been
installed will be shown.
show -type profile_type -user user_name -output output_path
Show expanded information for profiles. For an enrollment, this will show the current DEP configuration.
install -type profile_type -user user_name -enrolledUser enrollment_user_name -path file_path -forced
Install profiles. Installing a startup profile only sets up the profile for installation at restart time.
remove -type profile_type -user user_name -identifier identifier -uuid uuid -path file_path -forced -all
Remove profiles. Startup profiles can only be removed before they are fully installed as a profile, at which point you must use
the configuration profile type to remove it. Attempting to remove a configuration profile requring a removal password without
the correct password will fail.
status -type profile_type
Display status of the profiles installed on this client. When displaying the enrollment type status, if the MDM enrollment was
user approved, the status output will show "(User Approved)".
sync -type configuration
For configuration profiles, synchronize current installed set of profiles with the local users and remove any configuration pro-
files that belong to users that no longer exist on this computer.
renew -type profile_type -identifier identifier -output output_path
For configuration profiles, renews any certificates for the specified profile. For Device Enrollment Program (DEP) enrollments,
retry to obtain the device enrollment configuration, and re-enable the user notification if enrollment wasn't completed.
validate -type profile_type -path file_path
For provisioning profiles, validate the provisioning profile located at the file_path. For enrollments, re-validate the installed
DEP server information and update any local information, displaying any major changes. If this information is different from the
current enrolled server, this will not unenroll the client from the current server.
version
Displays current tool version.
OPTIONS
-type profile_type
The profile_type can be one of either: "configuration", "provisioning", "startup", or "enrollment" (DEP). If a command requires a
profile type and none is specified, "configuration" will be used.
-path file_path
A file path or "-" to represent stdout. When used by the remove command for startup profiles, this should only contain the file
name of the profile.
-user user_name
An OD short user name. In most cases if no user was specified, then the current user will be used. If no user option was speci-
fied and the process runs as root, the computer/device profiles will be used in the command.
-uuid profile_uuid
A canonical form UUID to specify a profile's PayloadUUID, such as 5A15247B-899C-474D-B1D7-DBD82BDE5684. Only used by the remove
provisioning profile command.
-identifier profile_identifier
A profile identifier (PayloadIdentifier) to specify a profile.
-output output_path
The output path location. The output_path argument must be specified to use this option, Use 'stdout' to send this informaton to the
console. File output will be written as an XML plist file, or you can use 'stdout-xml' to write XML to the console. The toplevel
key of the dictionary will contain either the user name, or _computerLevel for device or provisioning profile information.
-enrolledUser enrollment_user_name
The user name specified when installing an enrollment profile.
-password password
An optional password used when removing a configuration profile which requires the password removal option.
-forced
For startup profiles, this option will force a retry to occur at every boot until the profile is successfully installed. For other
profiles, this will prevent confirmation requests, and when trying to remove all configuration profles for a user, it will ignore any
errors during removal.
-all For configuration profiles, when running as root, the use of this option with the list or show commands will display all profiles
installed on the system. When removing profiles, using this option will remove all profiles for that user (or device).
-verbose
Display additional information.
PROFILE TYPES
configuration
A configuration profile.
provisioning
A provisioning profile.
enrollment
A device enrollment program (DEP) or mobile device management (MDM) enrollment profile or feature.
startup
A startup-enabled configuration profile.
EXAMPLES
profiles install -path /testfile.mobileconfig
Installs the configuration profile file 'testfile.mobileconfig' into current user.
profiles remove -path /profiles/testfile2.mobileconfig
Removes the configuration profile file '/profiles/testfile2.mobileconfig' into the current user.
profiles list -type provisioning
Displays a list of installed provisioning profiles.
profiles list -all
When running as root, this will list all configuration profiles on the system.
profiles show
Displays extended information for installed configuration profiles for the current user.
profiles status -type startup
Displays information on whether or not startup profiles are set up.
profiles remove -identifier com.example.profile1 -password pass
Removes any installed profiles with the identifier com.example.profile1 in the current user and using a removal password of 'pass'.
profiles install -type startup -path /startupprofile.mobileconfig -forced
Sets up the profile as a startup profile to be triggered at the next system startup time. If the profile can't be installed, it
will try again at next startup time.
profiles show -type enrollment
Displays the current DEP configuration information.
profiles renew -type enrollment
Re-enables the DEP user notification enrollment messages.
SEE ALSO
profiles.old(1)
macOS May 25, 2018 macOS