You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How Can I change the Root Password?

Author (Read 17802 times)

0 Members and 1 Guest are viewing this topic.

Re: How Can I change the Root Password?
« Reply #23 on: February 28, 2015, 01:44:47 PM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
I was thinking about Ikey's package manager rather than debian.

Man pages and techie stuff is out of my remit but I can follow intructions, I am one of those customers you dread!
 

Re: How Can I change the Root Password?
« Reply #22 on: February 28, 2015, 01:30:53 PM »
 

rokytnji

  • Friganeer
  • Platinum Level Poster
  • **********
  • 1255
    Posts
  • Reputation: 139
    • View Profile

  • CPU: Intel Core2 Duo U9600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4
Quote
Should the package manager ideally run that code "updatedb" whenever it adds/removes packages?

No. I think a Cron job handles that later but cannot swear to it (see below sentence). updatdb needs to be run manually  1st before the cron job kicks in though.
Because I have seen locate has not been updated errors after a certain amount of days have passed without running updatedb manually on my rigs.

Code: [Select]
man locate
might fill in the blanks in this post.

http://linux.die.net/man/1/locate

Quote
By default, locate does not check whether files found in database still exist. locate can never report files created after the most recent update of the relevant database.
« Last Edit: February 28, 2015, 01:37:19 PM by rokytnji »
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
 

Re: How Can I change the Root Password?
« Reply #21 on: February 28, 2015, 01:23:31 PM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
I'm getting 15 lines like this when running "sudo updatedb"
Code: [Select]
/usr/bin/find: `/home/user/.gvfs': Permission deniedI'm getting this with "locate pwd"
Code: [Select]
/bin/pwd
/etc/.pwd.lock
/home/user/data/ukbrian--/apps/doublecmd/doublecmd/pwd.ini
/lib/modules/3.2.0-4-686-pae/kernel/drivers/watchdog/hpwdt.ko
/sbin/unix_chkpwd
/usr/bin/pwdx
/usr/include/pwd.h
/usr/lib/python2.6/dist-packages/twisted/python/fakepwd.py
/usr/lib/python2.6/dist-packages/twisted/python/test/test_fakepwd.py
/usr/lib/python2.7/dist-packages/twisted/python/fakepwd.py
/usr/lib/python2.7/dist-packages/twisted/python/fakepwd.pyc
/usr/lib/python2.7/dist-packages/twisted/python/test/test_fakepwd.py
/usr/lib/python2.7/dist-packages/twisted/python/test/test_fakepwd.pyc
/usr/lib/syslinux/pwd.c32
/usr/share/man/fr/man1/pwd.1.gz
/usr/share/man/fr/man1/pwdx.1.gz
/usr/share/man/man1/pwd.1.gz
/usr/share/man/man1/pwdx.1.gz
/usr/share/man/man8/unix_chkpwd.8.gz
/usr/share/perl/5.14.2/pwd.pl
/usr/share/pyshared/twisted/python/fakepwd.py
/usr/share/pyshared/twisted/python/test/test_fakepwd.py

With "locate passwd" I get
Code: [Select]
$ locate passwd
/etc/cron.daily/passwd
/etc/pam.d/chpasswd
/etc/pam.d/passwd
/etc/passwd
/etc/passwd-
/etc/security/opasswd
/usr/bin/gpasswd
/usr/bin/grub-mkpasswd-pbkdf2
/usr/bin/lppasswd
/usr/bin/passwd
/usr/bin/smbpasswd
/usr/include/rpcsvc/yppasswd.h
/usr/include/rpcsvc/yppasswd.x
/usr/lib/netatalk/uams_dhx2_passwd.a
/usr/lib/netatalk/uams_dhx2_passwd.so
/usr/lib/netatalk/uams_passwd.a
/usr/lib/netatalk/uams_passwd.so
/usr/sbin/chgpasswd
/usr/sbin/chpasswd
/usr/sbin/update-passwd
/usr/share/app-install/desktop/kdepasswd.desktop
/usr/share/app-install/desktop/redhat-userpasswd.desktop
/usr/share/base-passwd
/usr/share/base-passwd/group.master
/usr/share/base-passwd/passwd.master
/usr/share/cups/doc-root/help/man-lppasswd.html
/usr/share/doc/base-passwd
/usr/share/doc/base-passwd/changelog.gz
/usr/share/doc/base-passwd/copyright
/usr/share/doc/base-passwd/README
/usr/share/doc/base-passwd/users-and-groups.html
/usr/share/doc/base-passwd/users-and-groups.txt.gz
/usr/share/doc/libnet-ssleay-perl/examples/passwd-cb.pl
/usr/share/doc/passwd
/usr/share/doc/passwd/changelog.Debian.gz
/usr/share/doc/passwd/changelog.gz
/usr/share/doc/passwd/copyright
/usr/share/doc/passwd/examples
/usr/share/doc/passwd/examples/passwd.expire.cron
/usr/share/doc/passwd/NEWS.Debian.gz
/usr/share/doc/passwd/NEWS.gz
/usr/share/doc/passwd/README
/usr/share/doc/passwd/README.Debian
/usr/share/doc/passwd/TODO.gz
/usr/share/lintian/overrides/passwd
/usr/share/man/cs/man1/gpasswd.1.gz
/usr/share/man/cs/man5/passwd.5.gz
/usr/share/man/de/man1/gpasswd.1.gz
/usr/share/man/de/man1/passwd.1.gz
/usr/share/man/de/man5/passwd.5.gz
/usr/share/man/de/man8/chpasswd.8.gz
/usr/share/man/de/man8/update-passwd.8.gz
/usr/share/man/es/man8/update-passwd.8.gz
/usr/share/man/fr/man1/gpasswd.1.gz
/usr/share/man/fr/man1/passwd.1.gz
/usr/share/man/fr/man1/passwd.1SSL.gz
/usr/share/man/fr/man5/passwd.5.gz
/usr/share/man/fr/man8/chpasswd.8.gz
/usr/share/man/fr/man8/update-passwd.8.gz
/usr/share/man/hu/man1/gpasswd.1.gz
/usr/share/man/hu/man1/passwd.1.gz
/usr/share/man/hu/man5/passwd.5.gz
/usr/share/man/it/man1/gpasswd.1.gz
/usr/share/man/it/man1/passwd.1.gz
/usr/share/man/it/man5/passwd.5.gz
/usr/share/man/it/man8/chpasswd.8.gz
/usr/share/man/ja/man1/gpasswd.1.gz
/usr/share/man/ja/man1/passwd.1.gz
/usr/share/man/ja/man5/passwd.5.gz
/usr/share/man/ja/man8/chpasswd.8.gz
/usr/share/man/ja/man8/update-passwd.8.gz
/usr/share/man/ko/man5/passwd.5.gz
/usr/share/man/man1/gpasswd.1.gz
/usr/share/man/man1/grub-mkpasswd-pbkdf2.1.gz
/usr/share/man/man1/lppasswd.1.gz
/usr/share/man/man1/passwd.1.gz
/usr/share/man/man1/passwd.1ssl.gz
/usr/share/man/man5/passwd.5.gz
/usr/share/man/man5/smbpasswd.5.gz
/usr/share/man/man8/chgpasswd.8.gz
/usr/share/man/man8/chpasswd.8.gz
/usr/share/man/man8/smbpasswd.8.gz
/usr/share/man/man8/update-passwd.8.gz
/usr/share/man/pl/man8/update-passwd.8.gz
/usr/share/man/pt_BR/man1/gpasswd.1.gz
/usr/share/man/pt_BR/man5/passwd.5.gz
/usr/share/man/ru/man1/gpasswd.1.gz
/usr/share/man/ru/man1/passwd.1.gz
/usr/share/man/ru/man5/passwd.5.gz
/usr/share/man/ru/man8/chpasswd.8.gz
/usr/share/man/ru/man8/update-passwd.8.gz
/usr/share/man/sv/man1/passwd.1.gz
/usr/share/man/sv/man5/passwd.5.gz
/usr/share/man/tr/man1/passwd.1.gz
/usr/share/man/tr/man5/passwd.5.gz
/usr/share/man/zh_CN/man1/gpasswd.1.gz
/usr/share/man/zh_CN/man1/passwd.1.gz
/usr/share/man/zh_CN/man5/passwd.5.gz
/usr/share/man/zh_CN/man8/chpasswd.8.gz
/usr/share/man/zh_TW/man5/passwd.5.gz
/usr/share/man/zh_TW/man8/chpasswd.8.gz
/var/backups/passwd.bak
/var/lib/dpkg/info/base-passwd.list
/var/lib/dpkg/info/base-passwd.md5sums
/var/lib/dpkg/info/base-passwd.postinst
/var/lib/dpkg/info/passwd.conffiles
/var/lib/dpkg/info/passwd.list
/var/lib/dpkg/info/passwd.md5sums
/var/lib/dpkg/info/passwd.postinst
/var/lib/dpkg/info/passwd.preinst

I'll start another thread about my other problem

Cheers Bro


Should the package manager ideally run that code "updatedb" whenever it adds/removes packages?
 

Re: How Can I change the Root Password?
« Reply #20 on: February 28, 2015, 11:43:34 AM »
 

rokytnji

  • Friganeer
  • Platinum Level Poster
  • **********
  • 1255
    Posts
  • Reputation: 139
    • View Profile

  • CPU: Intel Core2 Duo U9600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4
After installing locate.

Code: [Select]
sudo updatedb
is the 1st thing that should be done after a locate install. It will take a while to finish so give it some time.

The command I gave above updates the data base immediately. After that. I think a cron job in locate text file updates it periodically.
I usually just updatedb manually after downloading anything from the net so it shows later on when I need to find it.
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
 

Re: How Can I change the Root Password?
« Reply #19 on: February 28, 2015, 07:11:37 AM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
The idiot is still struggling.

I installed locate but didn't get anything out of it so I used catfish but didn't find anything that looked like an answer.

I'm not giving a machine to new comers that keeps asking for passwords but I'm also not going to install mint as I will do nothing to help clem.

Thanks for trying Bro.
« Last Edit: February 28, 2015, 01:02:10 PM by ukbrian »
 

Re: How Can I change the Root Password?
« Reply #18 on: February 27, 2015, 07:16:38 PM »
 

rokytnji

  • Friganeer
  • Platinum Level Poster
  • **********
  • 1255
    Posts
  • Reputation: 139
    • View Profile

  • CPU: Intel Core2 Duo U9600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4
Code: [Select]
locate pwd
Code: [Select]
locate passwd
you will see hidden files beginning with a "."

eg:

Quote
/etc/.pwd.lock

Some files are in code. Some not.  Not a coder. So I cannot tell you how to edit. Just only how to look around.
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
 

Re: How Can I change the Root Password?
« Reply #17 on: February 27, 2015, 01:10:00 PM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
I just installed a saline-backup of Mint and Xubuntu and in neither one did thunar ask for permission to mount partitions as I expected.

If there's anything I can check in Mint just ask.
 

Re: How Can I change the Root Password?
« Reply #16 on: February 27, 2015, 11:20:53 AM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
Thanks for trying man  :D
I'm banjaxed today so I'm off to chill for a bit
 

Re: How Can I change the Root Password?
« Reply #15 on: February 27, 2015, 12:26:23 AM »
 

AustinTexas

  • New to Forums
  • *
  • 25
    Posts
  • Reputation: 12
  • Linux Lite Lurker
    • View Profile
I don't think it is sudoers (or sudo) that is managing that function, I think it is Policykit.
I find that password request to mount a partition annoying and unnecessary, also. I will see if I can figure it out...

I tried editing /etc/polkit-1/localauthority.conf.d/50-localauthority.conf
from "AdminIdentities=unix-user:0"
to "AdminIdentities=unix-user:0;unix-user:dan"
but that did not do it.
Linux Lite 2.2 (64 bit), Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Microsoft-free environment since 1996
 

Re: How Can I change the Root Password?
« Reply #14 on: February 26, 2015, 05:48:55 PM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
My celebration was premature  :(

I'm still being asked for a bl**dy password when I try to open a partition on my internal sata drive.

Please Mr AustenTexas can you help a poor Welsh sheep sh*ging redneck?


 

Re: How/can I change the root password
« Reply #13 on: February 22, 2015, 10:02:44 PM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
I addedthat line to the live DVD but still no joy, it's not an ISO file it's a CD so I guess I need to create an ISO file first but xfburn don't do that so I'll have to look around for summat.

@AustinTexas
Quote
I would go for a shot of tea-quila.
Good shot, I'm going to need a bit of time to think up an appropriate responce.

Meanwhile I added this line to try and get thunar to load other partitions in the sidebar quietly instead of requesting permission. It seems to work but I still have to give it a good roadtest later.
Code: [Select]
user   ALL=NOPASSWD: /usr/bin/thunar
Gotta burn some rubber, see ya
« Last Edit: February 23, 2015, 03:54:21 AM by ukbrian »
 

Re: How/can I change the root password
« Reply #12 on: February 22, 2015, 10:01:38 PM »
 

AustinTexas

  • New to Forums
  • *
  • 25
    Posts
  • Reputation: 12
  • Linux Lite Lurker
    • View Profile
Can I make you a nice cup of tea Mr AustinTexas, you have saved an old man from doing a boring pointless task many times a day, with this increase in my productivity I might be able to retire early.
I would go for a shot of tea-quila.
Linux Lite 2.2 (64 bit), Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Microsoft-free environment since 1996
 

Re: How/can I change the root password
« Reply #11 on: February 22, 2015, 09:45:24 PM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
Thank you Sir Mr AustinTexas
You are my hero


Can I make you a nice cup of tea Mr AustinTexas, you have saved an old man from doing a boring pointless task many times a day, with this increase in my productivity I might be able to retire early.

I was an early adopter of Ghost I found/prefered to install a quick back up rather than try to undo some messes I made, I've been running win7 for three years without any anti virus running, I just do backups with Macrium Reflect free edition, 10 minutes and I have my system back after disaster strikes.

With Debian linux I use saline-backup to clone the partition or create a backup file, it was written for Squeeze but still runs on Jessie with systemd, I want to try it on EvolveOS but Yad isn't in the repos yet, I suppose I could try it on Manjaro where the saline-backup dev moved to, it was unsettling when within 6 months Saline OS closed down and migrated away from Debian to Manjaro and Ikey closed down his Debian SolusOS and then built his own new Linux base, 2 guys I respect moving away from Debian starts you thinking about the future, wouldn't surprise me if Deepin moved from a Ubuntu base to Ikey's new base.



I'm in you debt Sir, big time, one of the main Linux irritations removed.


Freedom from the nanny at last, I can relax again and not be constantly irritated, my quality of life has improved.

There's always another problem though.
 

Re: How/can I change the root password
« Reply #10 on: February 22, 2015, 08:44:41 PM »
 

ukbrian

  • Old Fool
  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 22
  • Linux Lite Member
    • View Profile
If the disk is based on Mint the root password may be blank. The sudo commands on some live cd/dvd don't require a password.
Cheers avj
The iso was done on Saline OS Squeeze and created with remastersys methods but it was made to help users of Mint LMDE

Off to try blank see what happens.

No luck I'm totally useless, I need an engineer.  :P

Is the password stored somewhere where I can find out what it is rather than changing it?
« Last Edit: February 22, 2015, 08:46:29 PM by ukbrian »
 

Re: How/can I change the root password
« Reply #9 on: February 22, 2015, 08:36:48 PM »
 

AustinTexas

  • New to Forums
  • *
  • 25
    Posts
  • Reputation: 12
  • Linux Lite Lurker
    • View Profile
Is there a line I can add to sudoers that would do what I want I normally add "user ALL=(ALL) NOPASSWD: ALL"
Then change "root  ALL=(ALL:ALL) ALL" to "root ALL=(ALL) NOPASSWD: ALL"

Not a good idea, but I think that is what you are looking for...
Linux Lite 2.2 (64 bit), Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Microsoft-free environment since 1996
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section