Gentoo Archives: gentoo-sparc

From: Zhang Weiwu <zhangweiwu@××××××.com>
To: gentoo-sparc@l.g.o
Subject: [gentoo-sparc] after switched harddisk users can login no more
Date: Wed, 13 Dec 2006 04:00:00
Message-Id: 1166011161.8158.42.camel@esmeralda.realss
1 Hello. Recently I have replaced my old 160GB IDE harddisk with 320GB
2 SATA harddisk (using PCI VT6421 IDE RAID Controller), this is what I
3 did:
4 1. connect both old harddisk and new one to the PCI IDE Controller;
5 2. partition the new harddisk (because it is originally labeld as
6 MSDOS harddisk since I bought it, I partitioned it using MSDOS
7 partition table, a.k.a not sun disk label. I guess it's no
8 problem because this harddisk is not the booting harddisk);
9 3. all partitions are created in ext3, mount to /mnt
10 as /mnt/root /mnt/home etc
11 4. do "cp -avR" for each partition;
12 5. edit /etc/fstab to mount new harddisk partitions rather then old
13 harddisk;
14 6. reboot, it works, I can log as root, all services running fine
15 (including ftp etc)
16 7. remove old harddisk;
17
18 So far everything is smooth untill I found I cannot login the host
19 (named sappho) as anyone other then root.
20
21 yuliansu@esmeralda:~> ssh zhangweiwu@sappho
22 Password:
23 Last login: Wed Dec 13 00:51:51 2006 from 218.193.55.201
24 Could not chdir to home directory /home/zhangweiwu: Permission denied
25 /bin/bash: Permission denied
26 Connection to sappho closed.
27
28 yuliansu@esmeralda:~> ssh root@sappho
29 Last login: Wed Dec 13 00:52:07 2006 from 218.193.55.201
30 sappho ~ #
31
32 Strangely: it seems everybody do have permission to run /bin/bash
33
34 sappho ~ # ls -lh /bin/bash
35 -rwxr-xr-x 1 root root 693K Feb 9 2006 /bin/bash
36
37 This is rather strange, such thing never happend (have permission to run
38 but get "Permission denied") in my 6 years of using Linux. Can I get
39 some of your suggestions? Is it because I didn't label the harddisk with
40 sun disk label?
41
42 --
43 gentoo-sparc@g.o mailing list

Replies

Subject Author
Re: [gentoo-sparc] after switched harddisk users can login no more Will Simoneau <simoneau@×××××××.edu>
Re: [gentoo-sparc] after switched harddisk users can login no more Hamish Greig <hgreig@×××××××××××.au>