You are not logged in.

#1 2005-05-02 23:33:38

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

su won't work

I should be posting in the Newbie forum.... geez.

Here's the problem. If I log in as root, it works. If I log in as a user and type 'su' and enter the root password, it says incorrect password. All I can say is... wtf???

I just moved partitions around using cp, I had my root and home on partitions on separate drives. I repartitioned everything to have root and home all on one partition on one drive. I think this may have caused the problem, but I dont know why. I reran passwd as root, but it didn't seem to help. Any ideas?

Dusty

Offline

#2 2005-05-02 23:53:31

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: su won't work

sticky bit maybe? Did you copy with cp so as to preserve permissions?

ls -l `which su`
-r-sr-xr-x  1 root root 19912 2004-12-15 22:55 /bin/su

"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-05-03 00:02:44

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: su won't work

yeah, what's the permission on su look like - also there's a setting somewhere that disallows "su" to root... try su'ing to another non-root user
maybe there's some info here: http://bbs.archlinux.org/viewtopic.php?t=7534

Offline

#4 2005-05-03 01:16:41

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: su won't work

I am only a lowly newbie, but I have experienced this before when playing around with partitions.  I do not know what the actual cause is, but I resolved it by logging into root, backing up all /home/olduser and deleting the user, then recreating the old user and replacing the files.  It seemed to refresh something and it worked.  Hope this helps!!

Cheers


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#5 2005-05-03 02:03:22

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: su won't work

Just a wild shot...try adding yourself to wheel group.

Offline

#6 2005-05-03 07:20:14

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,488

Re: su won't work

have a look at the wiki, or search the forum for su / sudo


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#7 2005-05-03 17:18:14

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: su won't work

Shit shit, I did copy the files without preserving permissions. I knew there was a reason to use tar instead of cp, but I couldn't remember what it was. *sigh*

Shit shit shit.

Dusty

Offline

#8 2005-05-03 17:26:29

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: su won't work

cp -a should have done the job too... i guess big_smile


I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell

Offline

#9 2005-05-03 18:52:24

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: su won't work

really? that'll be better than using tar next time!!

I luckily hadn't deleted the original partition, so I have it rescued now, but it cut into my time resources a lot. sad

Dusty

Offline

#10 2005-05-03 20:15:25

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: su won't work

Dusty, I moved my Arch install from my slave drive to my main hard drive a few months ago.. (Back in January?) anyways..

I use Midnight Commander, It takes care of all these things by default.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

Board footer

Powered by FluxBB