lppasswd: Unable to open passwd file: Permission denied

The lppasswd command used to adds, changes, or deletes passwords in the CUPS digest password file which refer to /etc/cups/passwd.md5.

In order to create a new CUPS administrator user, enter a command: lppasswd -g sys -a username.

I’m having a problem creating a new user with error message: “lppasswd: Unable to open passwd file: Permission denied” today.

lppasswd

And I just would like to share the solution as below:
Read more

Possibly Related Posts:


Missing /var/log/lastlog

The /var/log/lastlog file is a lastlog logging file which save all the last user login logs.


planetmy:~ # rpm -qf /usr/bin/lastlog
pwdutils-3.x.x.x-xx.xx

The Linux lastlog command use to prints the contents of the last login log. The login-name, port, and last login time will be printed.

For an example:

kajarona pts/137 140.171.171.73 Tue Oct 13 14:31:55 +0200 2009
aszg pts/82 140.171.171.11 Wed Nov 4 07:14:24 +0100 2009
ciakp pts/111 140.171.171.11 Tue Nov 3 07:44:41 +0100 2009
tkaj pts/68 140.171.171.64 Tue Nov 3 12:32:05 +0100 2009
ragab pts/108 149.223.30.18 Wed Nov 4 12:55:46 +0100 2009
aqelsp **Never logged in**
qrsnid pts/169 149.223.30.22 Thu Nov 5 08:52:10 +0100 2009
qqacharaj **Never logged in**
poygies pts/187 140.171.171.17 Thu Nov 5 09:50:33 +0100 2009
bojakt pts/11 140.171.171.101 Wed Nov 4 15:03:47 +0100 2009
chomata pts/182 149.223.20.86 Thu Nov 5 10:16:33 +0100 2009

Read more

Possibly Related Posts:


Telnet service_limit error

Previously I posted Inactive TELNET session timeout, How To Check Number of SSH and Telnet session and today I would like to share something related to TELNET again. In fact, I know telnet is NOT secure.

Referring to /var/log/xinetd.log(telnet parked under xinetd services), if you found something look like FAIL: telnet service_limit mean telnet instances are over limit.

09/8/26@10:43:23: FAIL: telnet service_limit from=192.168.10.180
09/8/26@10:43:23: FAIL: telnet service_limit from=192.168.10.180
09/8/26@10:43:24: FAIL: telnet service_limit from=192.168.10.180
09/8/26@10:43:24: FAIL: telnet service_limit from=192.168.10.180
09/8/26@10:43:25: FAIL: telnet service_limit from=192.168.10.180
09/8/26@10:43:25: FAIL: telnet service_limit from=192.168.10.180
09/8/26@10:43:26: FAIL: telnet service_limit from=192.168.10.180
09/8/26@10:43:26: FAIL: telnet service_limit from=192.168.10.180
09/8/26@10:43:27: FAIL: telnet service_limit from=192.168.10.180

Read more

Possibly Related Posts:


How to Add Date And Time To Your Bash History on SuSE Linux

The SuSE Linux Enterpise 10 which came together with bash-3.x RPM and HISTORY command show insufficient information(at least for me) as example below:

1 vi /etc/hosts
2 rpm -qa|grep bash
3 cat /etc/SuSE-release
4 history

For any SuSE Linux Enterprise server 10 that managed by more than one people, I would suggest you should make history command more user friendly and more information for auditing purposes.

Edit /etc/bash.bashrc and append to the bottom:

export HISTTIMEFORMAT="%h/%d - %H:%M:%S "

save it.
Read more

Possibly Related Posts:


RPM Segmentation Fault

While I was try to upgrade one of the RPM package on SuSE Linux Server, I’m getting an error message as below:


planetmy1:/var/spool/locks # rpm -Fvh http://server01/openssl-0.9.8a-18.26.x86_64.rpm
Retrieving http://server01/openssl-0.9.8a-18.26.x86_64.rpm
Preparing... Segmentation fault### ( 50%

In /var/log/messages, I can see similar error:
kernel: rpm[21904]: segfault at 0000000000bbbfb0 rip 00002b13dd4c51ba rsp 00007fffcd8c0150 error 4

The solution is:

[root@planetmy1 ~]# rpm --rebuilddb

use –rebuilddb to rebuild the database indices from the installed package headers.
Read more

Possibly Related Posts:


Next Page →

Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com