Sponsored Content
Full Discussion: system wide password change
Top Forums Shell Programming and Scripting system wide password change Post 98127 by kilemark on Monday 6th of February 2006 10:57:38 AM
Old 02-06-2006
Question system wide password change

Hello,

I am new to shell scripting and I was trying to write a script that would force a system wide password change except for admins. I am having some trouble and any help that someone could give me would be greatly appreciated. I am trying to do it by using the UID as the marker for anyone but admins. Here is what I have so far. Thank you.

#!/bin/ksh
typeset=i
awk -F: '{print $3}' /etc/passwd > /tmp/userlist
for i in `cat /tmp/userlist`
do
if (( $i > 100 )); then continue; fi
passwd -f $i
done
rm -f /tmp/userlist
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

links working system wide

I have created symbolic links to several frequently used commands, for example: "lt" is a link to "ls -ltrgo|tail". What can I do to make these links available system-wide, or at least in the directories my coworkers are in most of the time? I have copied the link to several directories, and... (6 Replies)
Discussion started by: jpprial
6 Replies

2. UNIX for Advanced & Expert Users

System wide CDE setup

Does anyone know how to make system wide changes to the CDE's front panel icons? I dont know if it matters but im running Solaris 9. THanks (1 Reply)
Discussion started by: meyersp
1 Replies

3. UNIX for Dummies Questions & Answers

FIND function - system wide

Hi, I have a task to search for a file called 'Xstartup' in the whole system because there might be different versions of it which overrite eachother. Can anyone suggest a smart command to run this search ? The machine needs to scan every single folder beginning from root. Please help, I am... (5 Replies)
Discussion started by: DGoubine
5 Replies

4. UNIX for Dummies Questions & Answers

Server wide password enforcement rules? 90 day force change.

Using Solaris 9 and 10. What we want to do is set up global rules for our password files to restrict all users, not only new ones set up with the rules but also the ones that have been sitting on the system for years. Is there a global way to force all users to change their password every 90... (1 Reply)
Discussion started by: LordJezo
1 Replies

5. HP-UX

System wide user thread limit. does that exists :?

Hi all, Is there any system wide limit on number of user threads. I only find nkthread as a tunable parameter,apart from the `per process limit`. (1 Reply)
Discussion started by: Krsh
1 Replies

6. Linux

System wide find and sort

Hi, I need to look for a config file (ldap.conf) and pick the latest modified file. `locate` tells me there are many ldap.conf's, some in /etc, /usr, /home, etc. Is there some way I can sort them by last modified time via bash? I was thinking maybe I could pipe the output of `locate` to `ls... (4 Replies)
Discussion started by: Housni
4 Replies

7. UNIX for Advanced & Expert Users

Declaring LD_PRELOAD system wide for dynamic loading

Dear Fellows; As being new to linux, i have tried to synamically load a custom library which overrides some system calls like conncet(), socket() etc.... for custom purposes. It works well, if declaring the environment path LD_PRELOAD and execution of the application to be override... (0 Replies)
Discussion started by: mzeeshan
0 Replies

8. UNIX for Dummies Questions & Answers

[GPG] System-wide public key?

We need to have many of our users all send encrypted files to a single FTP server. The problem, if I understand how encryption/decryption works (which I don't), is that each user would normally have their own private and public key. The other end needs to be able to decrypt the file(s) using a... (6 Replies)
Discussion started by: Totengraber
6 Replies

9. Red Hat

Changing system-wide for umask

Hi everybody, How can I change the default UMASK for non root users, e.g. I want the umask for every new created user will be 0044. Thanks (6 Replies)
Discussion started by: leo_ultra_leo
6 Replies

10. Shell Programming and Scripting

System-wide search

When looking for wherever a program or a filename appears in the system, a short scrip is "findinner" which another script calls with a long parameter list consisting of path names ending with ".sh" or ".menu". "findinner" looks like this: # If not .savenn file, show name and result of grep. #... (4 Replies)
Discussion started by: wbport
4 Replies
NICOTINE(1)						      General Commands Manual						       NICOTINE(1)

NAME
nicotine-import-winconfig - import configuration from the Windows soulseek client SYNOPSIS
nicotine-import-winconfig [OPTIONS] old-config-file DESCRIPTION
This manual page documents briefly the nicotine-import-winconfig command. This manual page was written for the Debian distribution because the original program does not have a manual page. nicotine-import-winconfig is a program to import your queue, user list, password information, auto-joined chatrooms, banlist, and user information from the Windows SoulSeek configuration. USAGE
A typical invocation would be : nicotine-import-winconfig "/mnt/win9x/Program Files/SoulSeek" The program should be run when nicotine is not running. It will add the information (download queue, userlist, password info, etc.) to the existing configuration or write a new configuration from scratch when no configuration exists. FILES
$HOME/.nicotine/config The per-user configuration file for nicotine(1) will be overwritten. You might want to back up the file first, but it should not be necessary. A different config file can be chosen using the --config flag. configfile-userinfo.ext In case there's an image included in the Windows SoulSeek userinfo, the image will be extracted and written to that file, where con- figfile is the path to your nicotine configuration file, and ext is the appropriate file extension for the image type. OPTIONS
When you don't want to import all configuration options, you can choose what to import using command line flags. -c file | --config=file Use a non-default nicotine configuration file to write to. -q | --queue Import the queue. -u | --userlist Import the userlist. -l | --login Import the login information. -C | --chatrooms Import the list of autojoined chatrooms. -b | --banned Import the list of banned users. -i | --userinfo Import the user information and the image. -h | --help Print the summary of command line options and exit. TIPS
It is possible to share the download directory between platforms. Nicotine can even continue downloads that started using the Windows client. Of course, the download directories should be the same for nicotine and Windows, e.g. if your Windows sharing directory is F:slsk_in and your F drive is mounted on /mnt/media, then you must set your download directory to /mnt/media/slsk_in. SEE ALSO
nicotine(1). AUTHOR
Geert Kloosterman <geertk@ai.rug.nl>, 2003. August 25, 2003 NICOTINE(1)
All times are GMT -4. The time now is 07:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy