LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2018, 01:50 PM   #1
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
su command on cloned system doesn't work


I had an empty partition at my drive and decided to clone my system to that partition.
Well, I just copied entire the root filesystem (excluding tmp, proc, sys and dev directories content), tweaked grub.cfg, /etc/fstab and rebooted into freshly cloned system.
All seems OK except one thing: I can't run su, kdesu and sudo commands. In fact I can do it, but I getting "Authentication failed" message when I entering root password. It occurs both in GUI and CLI.

However, if I (being switched into CLI with Alt+Ctrl+F1) logging in as root directly (without su) I can log into root account.

Can anyone explaine what's going on?
 
Old 01-07-2018, 03:55 PM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,717

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
HOW did you copy that root file system? If you did a true clone, it should work. If you did a COPY (cp) then certain ACL bits would not transfer and this behavior is exactly what you should expect.
 
1 members found this post helpful.
Old 01-07-2018, 04:03 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,080

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
SO let's see the (exact) command you used - "cp" is fine if used properly.
 
Old 01-08-2018, 02:21 AM   #4
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Original Poster
Rep: Reputation: 142Reputation: 142
Used rsync, and forgot about ACl, seems have to re-rsync, this time with -p option.
Will see if it helps.
 
Old 01-08-2018, 05:29 AM   #5
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Original Poster
Rep: Reputation: 142Reputation: 142
Yes, it was an ACL issue. Fixed by adding "-a" option to rsync.

Thanks for your help, guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [SOLVED] bash script: can echo command, command works if I type, but command doesn't work in script ... why? hopeless_n00b Linux - Newbie 10 07-12-2018 05:57 AM
at command doesn't work RuijunFan Linux - Newbie 4 08-10-2015 11:11 AM
why doesn't work this command? baby_ Linux - General 5 12-13-2009 07:16 AM
Cloned harddisk doesn't boot with LILO in MBR Kristian2 Slackware 8 07-24-2007 01:00 PM
the ./ command doesn't work Thane Ubuntu 14 09-30-2006 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration