![]() | ||
|
|
Snap Server / NAS / Storage Technical Goodies The Home for Snap Server Hacking, Storage and NAS info. And NAS / Snap Classifides |
![]() |
Thread Tools |
![]() |
#1 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
I got my 4500 reset to defaults and am cleaning out the old user directories on it out via PUTTY and there is a directory at: /shares/SHARE1/user_data/jrc that I can't delete and can't navigate to, either at the command prompt or in Windows browsing. I went to the HTTP admin page and tried the "Reset to default ACLs for volume: VOL0" functionality, but it changed nothing. I'm not entirely new to Linux, but I think I need the root password to reset the permissions. Only problem is, the only user defined in the HTTP admin page is "admin", which I am logged into PUTTY as, and admin's password doesn't work for root. Any ideas?
The permissions on that directory are: drwxrwx--- I tried first the same command I had been using: "rm -r jrc", but no dice. I tried a "chmod -R 777 jrc" on the directory, but no dice Last edited by FortoReibas; 06-06-2008 at 07:27 AM. |
![]() |
![]() |
![]() |
#2 |
Cooling Savant
Join Date: Mar 2006
Location: USA
Posts: 257
|
![]()
Did you try putty log in as admin then your password then type "su" then your password again?
1.)Start putty 2.)Enter your user name with admin rights. defualt=admin 3.)Enter your password. 4.)Type su 5.)Enter password same as number 3.) bitor |
![]() |
![]() |
![]() |
#3 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
I tried that, using the password "admin".
sh-2.04$ su Password: su: incorrect password sh-2.04$ |
![]() |
![]() |
![]() |
#4 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
I just created a brand-new admin user: blink/blink and logged in as it. Same results -- can't su using its password.
|
![]() |
![]() |
![]() |
#5 |
Thermophile
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
|
![]()
With version 4 you need to use the "os shell" then "su root", PW in order to gain access to the root.
error correction edit: os shell should be "osshell" then "su"
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5, 1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5, 1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820 Last edited by blue68f100; 06-06-2008 at 11:06 AM. |
![]() |
![]() |
![]() |
#6 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
Snapserver manager reports this unit as running 3.2.025. Does that change anything?
Not sure what you mean by "os shell" password? |
![]() |
![]() |
![]() |
#7 |
Thermophile
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
|
![]()
If your not getting the # prompt indicating you have admin rights enter the "os shell" this will grant you access to the system files if you use the root pw.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5, 1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5, 1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820 |
![]() |
![]() |
![]() |
#8 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
That sounds great. How do I do it with 3.2.025?
|
![]() |
![]() |
![]() |
#9 |
Thermophile
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
|
![]()
Use putty as you were then os shell after your loged in.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5, 1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5, 1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820 |
![]() |
![]() |
![]() |
#10 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
Wonderful! How do I do it, though?
|
![]() |
![]() |
![]() |
#11 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
I tried issuing the command "os shell" at the command prompt in PUTTY, but that didn't work.
|
![]() |
![]() |
![]() |
#12 | |
Thermophile
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
|
![]() Quote:
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5, 1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5, 1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820 |
|
![]() |
![]() |
![]() |
#13 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
That other thread is me too. I did eventually get it reset to defaults via the white reset button and HTTP interface, but that still left me as described in this thread. The admin password is now "admin".
So, to recap: Log into PuTTY as admin/admin Navigate to /shares/SHARE1/user_data/ and try to delete subdirectory jrc with command rm -r jrc No go. Try to su as root, but the "admin" password doesn't work for root. That's where I'm stuck. I need to be clear that I really don't care about root -- it's just a possible method to allow me to delete a subdirectory, which is what I really want. Last edited by FortoReibas; 06-06-2008 at 10:32 AM. |
![]() |
![]() |
![]() |
#14 |
Thermophile
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
|
![]()
Are you getting the # prompt or $ prompt when you login as admin?
at the > prompt enter osshell su password see if this works.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5, 1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5, 1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820 |
![]() |
![]() |
![]() |
#15 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
Here is what I am getting:
login as: admin admin@172.16.1.43's password:***** Last login: Fri Jun 6 18:12:46 2008 from desktop sh-2.04$ sh-2.04$ osshell sh: osshell: command not found sh-2.04$ |
![]() |
![]() |
![]() |
#16 |
Thermophile
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
|
![]()
I was thinking the osshell was only good for v4.2 and up.
Does the su root or su drop you into the # prompt.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5, 1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5, 1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820 |
![]() |
![]() |
![]() |
#17 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
That's just it. I don't know the password to get past su.
sh-2.04$ su Password: [I am typing in "admin" here] su: incorrect password sh-2.04$ |
![]() |
![]() |
![]() |
#18 |
Thermophile
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
|
![]()
Dig out the old null modem cable (115.2kbps N,8,1) and see if you can get into the repair/reset options of the diaster recovery console.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5, 1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5, 1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820 |
![]() |
![]() |
![]() |
#19 |
Cooling Savant
Join Date: Mar 2006
Location: USA
Posts: 257
|
![]()
As I understand the default username is the same as the password.
username: admin password: admin Try that and see if it works. You might have to be in the osshell directory in order for it to work. Do a "find / -name *osshell* " to see it the program is on your system. bitor I just saw that you tried that. Never mind. |
![]() |
![]() |
![]() |
#20 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
Well, that was a strange fix. I went into the HTTP admin page and did a real shutdown one more time, then brought it back up, and I was able to SSH in and remove the directory.
It looks like SnapServers don't like to be unplugged when you want them off. I guess that I was treating them too much like appliances and not enough like finicky Windows servers. I'd been just unplugging them when I wanted them off. All is well now. |
![]() |
![]() |
![]() |
#21 |
Thermophile
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
|
![]()
I do not know any pc or server that like the power being removed without being shutdown properly. Particularly anything running a RAID array. Most all will initiate a system file check and array check.
The GuardianOS is on Redhat Enterprise Linux.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5, 1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5, 1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820 |
![]() |
![]() |
![]() |
#22 |
Cooling Savant
Join Date: Mar 2006
Location: USA
Posts: 257
|
![]()
Wow, not a good thing to do for Snap Servers of any flavor in general, but glad you got it working. Maybe the next time somebody ask for help they should not only tell us the problem , but what they are doing. Which might be causing the problem.
Just a thought, bitor |
![]() |
![]() |
![]() |
#23 |
Cooling Neophyte
Join Date: Jan 2007
Location: florida
Posts: 26
|
![]()
Point well taken.
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|