Posts: 1,062
Dave
Joined: 20 Jan 2010
#1
made another gui script to change the passwords for the users of your linux system.

Image

Needs to be run as root, place script in /usr/local/bin


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/passwd-change"
linktext was:"Script"
====================================



========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/passwd-change.tar.gz"
linktext was:"Script tar ball"
====================================


EDIT: Carried on with my password changing gui and made a user management. Not to indepth with the options, so far allows to change passwords, add remove and recover users, set autologin and default user, (with exception) --> add and remove groups, and add users to groups.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/user-management.tar.gz"
linktext was:"user-management"
====================================
Last edited by Dave on 23 Jul 2011, 21:04, edited 2 times in total.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#2
Screen Shot of Gui
Posts: 1,062
Dave
Joined: 20 Jan 2010
#3
more shots
rokytnji
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
Downloaded and extracted user-management link. Made launcher in Icewm toolbar. Works just fine Dave. __{{emoticon}}__ Thanks again.
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#5
Nice work Dave.

One 'problem' I have found is that you can run the script as user and although the changes are not made (correctly) the pop up messages say they have for example change password for user.
You need to have a check that the app is running as root section and if it is then continue else either close or prompt for root password.

Once that is ok, then we can include in antiX as a replacement to muser from MEPIS.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#6
ok thank you for that problem, I will make a part to check root user and then post back once that is done.
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#7
It is only really an issue if the app is opened via run or a terminal as from the menu or antiXcc it can be set to run as gksu user-management.

I have been playing with it and like it a lot. May need to change some of the wording to make it a bit clearer, but that is very minor.
One thing I did notice is that the saved homeuser file in /var/ when restored does not included the Desktop and Wallpaper folders. Testing this on antiX-base in VB.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#8
Ok I have set a check for root and if you are not it will prompt you to become root, checking into the desktop and wallpaper folders right now, may add user repair similar to muser as well

EDIT: the reasoning behind the Folders not being recovered is because they are empty when you delete the user. When I added a file to those folders they would come back in the recovery, but empty they won't
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#9
The Wallpaper folder is only empty in live mode (well not quite as it has sym links to /usr/share/wallpaper). Desktop is indeed empty.

Another thing, I get this every time I open user-management.

cat: /etc/user-management.conf: No such file or directory

There is no user-management.conf. Should there be?

Keep up the great work on this Dave. I really would like to include your script/app rather than the MEPIS one.

If you have time and want to do so, how about creating a similar script to replace msystem?
Posts: 1,062
Dave
Joined: 20 Jan 2010
#10
the cat /etc/user-management.conf No such file or directory is not a problem, it is just a file that keeps track of the groups made through the app. This allows for the choice of deleteing groups and adding people to groups that you have made rather than showing all of the system groups, which would be confusing to normal users.

once you make a group with the app the file will be made, mostly for simplification to the user, but also for protection against deleteing vital system groups.

will look into msystem and see if there is something I can do, just as I did with this in my spare time __{{emoticon}}__
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#11
Dave wrote: will look into msystem and see if there is something I can do, just as I did with this in my spare time __{{emoticon}}__
Great! I'm sure you can find something to do!

Thanks again for another addition to antiX.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#12
Added a repair ability to the add user section, basically removes all the hidden files from ~/ and then copies the originals from /etc/skel, then calls logouthelper.sh so you can logout. Just changing the config files locks the users gui, but root can still execute commands that can be used in the users gui.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/user-management.tar.gz"
linktext was:"user-management"
====================================
Last edited by Dave on 23 Jul 2011, 21:05, edited 1 time in total.
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#13
I found another issue.

* a user can be created even without a password or passwords do not match. It should be that if user fails to give a new password than the app stops or prompts for password.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#14
alright solved this issue, now does a check for matching and blank password entries, hope this is better.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.homelinux.com/antiX/user-management.tar.gz"
linktext was:"user-management"
====================================
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#15
Much better!

I have changes some of the wording and removed some of the capitalisation.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.mepisimo.com/antix/Tarballs/user-management"
linktext was:"http://www.mepisimo.com/antix/Tarballs/user-management"
====================================