Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-17-2004, 01:35 PM   #1
Registered: Sep 2004
Location: Texas, USA
Distribution: Slack 9.1 with slackware-current packages...
Posts: 164

Rep: Reputation: 30
Serious messup

Okay, here's my story and question.
My family, unwittingly, made me dual-boot between Linux and Winsuck.
Well, I got too pissed off at Winblows taking up space that I've removed it
hd setup:
hda1: winblows
hda5: Linux
Well, I formatted hda1, then, as root, cp'd all of the files on hda5 over to hda1 Well, now I'vemessed something up.

Well, now things are retty messed up, everything is accesible by root only, and I don't ike that.
I chmodded and chowned my home dir, but that isn't going to fix everything.
so, I try to su to fix some of it and it says 'setgid: permission denied'
Does anyone know a way to retain all the permissions from the other dirve?
Sorry for the typos, writing in links which won't show me the whole text box.

If someone could help me su, I could fix the rest on my own I think.

Thanks for your time
-- Andrew.
Old 12-17-2004, 01:41 PM   #2
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Woops ...

If I were you, I'd boot back into the install weher everything works, and then use tar or dump/restore to move the files over. Either that, or cp everything again, only this time use cp's "archive" mode.

man cp if you don't know what I'm talikng about.
Old 12-17-2004, 01:42 PM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If you still have the source files then copy with "-a" to preserve the permisions or just move the files. Also make sure that your filesystem supports file permisions.
Old 12-17-2004, 01:44 PM   #4
Registered: Sep 2004
Location: Texas, USA
Distribution: Slack 9.1 with slackware-current packages...
Posts: 164

Original Poster
Rep: Reputation: 30
You guys were unbelievably quick, thanks a bunch.
I'm going to try that now.
I'm sure it'll work as it's practically a clone.


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
xorg.conf messup with screen stealthgate Linux - Software 1 07-12-2005 11:00 AM
Did Linux messup my boot Partition? rainchill Linux - Hardware 3 04-24-2003 08:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 AM.

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