Tiny Core Linux
		Tiny Core Extensions => TCE Talk => Topic started by: remus on January 29, 2013, 08:30:06 PM
		
			
			- 
				Hi all,
I've spotted a strange message in /var/log/messages when creating a group with the groupadd command from shadow-utils.tcz
Here's the steps.
I'm using microcore 3.8.4
Boot code used: mc syslog
Installed shadow-utils.tcz
tce-load -wi shadow-utils.tcz
Use the groupadd command.
sudo groupadd erstat
Output from /var/log/messages
tc@box:~$ tail -f /var/log/messages
Jan 30 11:17:29 (none) local2.notice sudo:       tc : TTY=pts/1 ; PWD=/home/tc ; USER=root ; COMMAND=/usr/local/sbin/groupadd erstat
Jan 30 11:17:29 (none) auth.crit groupadd[934]: cannot open login definitions /etc/login.defs [No such file or directory]
Jan 30 11:17:29 (none) auth.crit groupadd[934]: cannot open login definitions /etc/login.defs [No such file or directory]
Jan 30 11:17:29 (none) auth.info groupadd[934]: new group: name=erstat, gid=500
The group does get created, and it does work for samba.
I tried creating a few other groups just in case I was dealing with a reserved word or something like that, but its  a consistent message in the logs.
			 
			
			- 
				Hi remus
.... notice sudo: .....
This message shows up anytime you use sudo.
cannot open login definitions /etc/login.defs [No such file or directory]
shadow-utlis contains:
usr/local/etc/login.defs
			 
			
			- 
				Thanks Rich,
Is this error going to cause any problems ?
I'm going to switch to the addgroup and adduser commands that come with mc/tc for now.
And uninstall shadow-utils.tcz with
tce-audit builddb
tce-audit delete shadow-utils
And reboot
			 
			
			- 
				Hi remus
I don't think it will cause any problems. You'll need to backup:
/etc/passwd
/etc/group
			 
			
			- 
				Thanks Rich,
Yep, got
etc/passwd
etc/shadow
etc/group
added to my /opt/.filetool.lst file
Ok, so i've had a look at the relevent files and everything, works fine in samba.
Is it possible that when shadow-utils could be compiled with updated login.defs location ?
			 
			
			- 
				Hi remus
Something similar came up recently with another extension, don't remember which one. One propose solution
was to create a link between  /etc/FILENAME  and  /usr/local/etc/FILENAME
			 
			
			- 
				should I post a report about this being a bug in the relevant forum ?
			
 
			
			- 
				Hi remus
You could, but be aware that  jpeters  has not been active since 2011. Also note, bmarkus has already filed an
unrelated bug report against shadow-utils.tcz.
http://forum.tinycorelinux.net/index.php/topic,13099.msg72203.html#msg72203
			 
			
			- 
				Source for shadow-utils can be found here:
http://pkg-shadow.alioth.debian.org/
If no one jumps at the chance to tcz this I might have a crack.