WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mydata.tgz permissions  (Read 2297 times)

Offline batnas

  • Full Member
  • ***
  • Posts: 122
mydata.tgz permissions
« on: April 27, 2010, 09:34:33 AM »
Hi all.

I have a problem with mydata.tgz not preserving permissions.
I had etc/sudoers in .filetool and back'ed it up about a month ago. (without any reboot in this itime).
I made a small change and had to reboot it, and when it booted again it had changed the permission on /etc/sudoers.
Sudoers do not work with wrong permissions, causing me not to be able to change to root or simply run sudo.

I have managed to fix the problem, and my server is up and running again, but was it an idea to add -p to the tar-command in filetool.sh

\\Batnas

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: mydata.tgz permissions
« Reply #1 on: April 27, 2010, 10:03:07 AM »
-p should be the default for root, and restore always takes place as root. Can you reproduce with 2.11rc2 (with the updated busybox)?
The only barriers that can stop you are the ones you create yourself.

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: mydata.tgz permissions
« Reply #2 on: April 27, 2010, 10:26:26 AM »
the machine is still running 2.9, and it is a bit triky for me to upgrade it(if it more than just a new microcore.gz)
I am considering upgrading it, but it is a bit tricky as it is a thinstation, only able to PXE-boot

\\Batnas

PS sorry for posting under extensions

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: mydata.tgz permissions
« Reply #3 on: April 27, 2010, 11:00:45 AM »
You could just drop the 2.11rc2 microcore.gz on the PXE server, and boot it with "base", to only check the backup.
The only barriers that can stop you are the ones you create yourself.

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: mydata.tgz permissions
« Reply #4 on: April 27, 2010, 11:36:57 AM »
Nah. I think i will wait till 2.12 gets released, and then install again. Can't I just copy all my files to the newly installed MC??
files like: menu.lst,  /tce and  /opt??

\\Batnas

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: mydata.tgz permissions
« Reply #5 on: April 27, 2010, 12:37:34 PM »
Yes, I was only thinking how you could test without upgrading.
The only barriers that can stop you are the ones you create yourself.