WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bad attributes in dcore-jessie  (Read 2587 times)

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
bad attributes in dcore-jessie
« on: January 22, 2016, 11:01:38 AM »
It seems that sudo lacks +s in current release (the dcoreplus iso) , so i can barely do anything.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: bad attributes in dcore-jessie
« Reply #1 on: January 22, 2016, 01:26:36 PM »
Uploading a new RC with /usr/bin/sudo permission fix.

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
Re: bad attributes in dcore-jessie
« Reply #2 on: June 17, 2016, 08: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.
« Last Edit: June 17, 2016, 08:14:18 AM by yoshi314 »

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: bad attributes in dcore-jessie
« Reply #3 on: June 17, 2016, 10:12:25 AM »
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.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: bad attributes in dcore-jessie
« Reply #4 on: June 17, 2016, 01: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
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: bad attributes in dcore-jessie
« Reply #5 on: June 17, 2016, 01: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. 

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: bad attributes in dcore-jessie
« Reply #6 on: June 18, 2016, 09:44:53 AM »
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.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: bad attributes in dcore-jessie
« Reply #7 on: June 18, 2016, 01:04:46 PM »
I see what it is, will fix it tonight.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: bad attributes in dcore-jessie
« Reply #8 on: June 19, 2016, 12:02:48 PM »
Backup works well again in dCore-wily, thanks.