Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: yoshi314 on January 22, 2016, 02:01:38 PM

Title: bad attributes in dcore-jessie
Post by: yoshi314 on January 22, 2016, 02:01:38 PM
It seems that sudo lacks +s in current release (the dcoreplus iso) , so i can barely do anything.
Title: Re: bad attributes in dcore-jessie
Post by: Jason W on January 22, 2016, 04:26:36 PM
Uploading a new RC with /usr/bin/sudo permission fix.
Title: Re: bad attributes in dcore-jessie
Post by: yoshi314 on June 17, 2016, 11:06:10 AM
I am actually still hitting this. It seems to happen 80% of the time.

One thing worth mentioning is that it tends to break more often when i clean up the setup on usb (leave only the kernel + initrd). I worked it around through bootlocal.sh.

Also, when this happens the backup script must be ran through sudo. Not sure if that's the new required way of running it.
Title: Re: bad attributes in dcore-jessie
Post by: Jason W on June 17, 2016, 01:12:25 PM
tc-config takes care of the suid root of /usr/bin/sudo, and I have never seen this problem myself.  And I have never had to use sudo for the backup command.

But I did reset /usr/bin/sudo itself to suid root in the latest RC.  But tc-config was taking care of that as well as user/group/perms of other things.
Title: Re: bad attributes in dcore-jessie
Post by: jls on June 17, 2016, 04:13:53 PM
I see that filetool.sh -b executed by normal user gives
sed: can't create temp file '/opt/.filetool.lstRuJSZ9': Permesso negato
but mydata is created
Title: Re: bad attributes in dcore-jessie
Post by: Jason W on June 17, 2016, 04:55:43 PM
Ok, that is due to permission issues of /opt.  The perms are good in the base image, but I have added in tc-config for during boot and in filetool.sh the setting of the proper owner/perms of /opt.  In case the the attributes get changed during a running session. 

We have seen this before a time or two, and hopefully now is prevented. 
Title: Re: bad attributes in dcore-jessie
Post by: nitram on June 18, 2016, 12:44:53 PM
In dCore-wily the  backup  command was working fine until latest update:
You are running dCore-wily:2016.06.17.19.28, the latest release candidate.

Code: [Select]
tc@box:~$ backup
Backup device is set to: sda1/tce
Perform backup now? (y/N) y
chown: /opt: Operation not permitted
chmod: /opt: Operation not permitted
Backing up files to /mnt/sda1/tce/mydata.tgz
Done.

Think backup still performed, just the error output's new. Have not yet had a chance to update and check dCore-jessie.
Title: Re: bad attributes in dcore-jessie
Post by: Jason W on June 18, 2016, 04:04:46 PM
I see what it is, will fix it tonight.
Title: Re: bad attributes in dcore-jessie
Post by: nitram on June 19, 2016, 03:02:48 PM
Backup works well again in dCore-wily, thanks.