LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-18-2017, 11:49 AM   #1
zachkadiwal
LQ Newbie
 
Registered: May 2017
Posts: 2

Rep: Reputation: Disabled
User password status


I am getting a syntax error and couldn't able to figure out the solution.

Error:
$ sudo ./service_account.sh

List of user accounts with password information
===============================================
Thu May 18 12:34:15 EDT 2017

Legend: M=Minimum password age W=Warning in days before exp
Dis=Account Disabled
------------------------------------------------------------------------------------------
Username |Full name |UID |LastChange|M|Max |W|Passwd Exp|Dis |Acct Exp
----------|-------------------------|-----|----------|-|-----|-|----------|----|----------
./service_account.sh: line 54: 17304 + : syntax error: operand expected (error token is "- ")
 
Old 05-18-2017, 02:40 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Welcome to LQ!
When did it stop working?
When did it last work?
When was it last run successfully?
Who authored service_account.sh?
Have you looked at line 54 of service_account.sh?
Have the correct user/env ?

Please let us know.
 
Old 05-18-2017, 06:45 PM   #3
zachkadiwal
LQ Newbie
 
Registered: May 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
When did it stop working?
I tried it today first time.

When did it last work?
N/A
When was it last run successfully?
N/A
Who authored service_account.sh?
I have a ownership to rwx
Have you looked at line 54 of service_account.sh?
I saw the scrip and that line is doing a subtracting
pass=$(( $now - $a ))

Have the correct user/env ?
Yes
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding a password from process status semple1990 Linux - General 3 07-05-2014 09:03 PM
How to edit PAM DB of VSFTPD (..add user, delete user, change user password ) jsaravana87 Linux - Server 1 10-02-2012 08:49 AM
Password rejected when attempting super user status. yta Linux - Newbie 2 11-09-2009 01:01 PM
simpler GUI password for Administrative tasks while retaining complex user password? workforfood Ubuntu 1 08-29-2009 06:48 AM
Add a user with no password/or user pick password. knockout_artist Linux - Newbie 2 11-26-2007 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration