Gentoo Archives: gentoo-sparc

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

Replies

Subject Author
Re: [gentoo-sparc] after switched harddisk users can login no more "张韡武" <zhangweiwu@××××××.com>