Go Back   Pro/Forums > ProCooling Technical Discussions > Snap Server / NAS / Storage Technical Goodies
Password
Register FAQ Members List Calendar Chat

Snap Server / NAS / Storage Technical Goodies The Home for Snap Server Hacking, Storage and NAS info. And NAS / Snap Classifides

Reply
Thread Tools
Unread 06-06-2008, 06:30 AM   #1
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Delete a stubborn user directory on a 4500

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.
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 09:25 AM   #2
bitor
Cooling Savant
 
Join Date: Mar 2006
Location: USA
Posts: 257
Default Re: Delete a stubborn user directory on a 4500

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
bitor is offline   Reply With Quote
Unread 06-06-2008, 09:30 AM   #3
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

I tried that, using the password "admin".

sh-2.04$ su
Password:
su: incorrect password
sh-2.04$
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 09:38 AM   #4
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

I just created a brand-new admin user: blink/blink and logged in as it. Same results -- can't su using its password.
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 09:41 AM   #5
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Delete a stubborn user directory on a 4500

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.
blue68f100 is offline   Reply With Quote
Unread 06-06-2008, 09:46 AM   #6
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

Snapserver manager reports this unit as running 3.2.025. Does that change anything?

Not sure what you mean by "os shell" password?
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 09:55 AM   #7
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Delete a stubborn user directory on a 4500

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
blue68f100 is offline   Reply With Quote
Unread 06-06-2008, 09:58 AM   #8
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

That sounds great. How do I do it with 3.2.025?
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 10:01 AM   #9
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Delete a stubborn user directory on a 4500

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
blue68f100 is offline   Reply With Quote
Unread 06-06-2008, 10:02 AM   #10
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

Wonderful! How do I do it, though?
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 10:04 AM   #11
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

I tried issuing the command "os shell" at the command prompt in PUTTY, but that didn't work.
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 10:10 AM   #12
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Delete a stubborn user directory on a 4500

Quote:
I tried that, using the password "admin".

sh-2.04$ su
Password:
su: incorrect password
sh-2.04$
If you do not know the admin password you may need to reset the unit. There is another thread running right now that covers that. My post #2 has the instructions.
__________________
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
blue68f100 is offline   Reply With Quote
Unread 06-06-2008, 10:15 AM   #13
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

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.
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 11:05 AM   #14
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Delete a stubborn user directory on a 4500

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
blue68f100 is offline   Reply With Quote
Unread 06-06-2008, 11:07 AM   #15
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

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$
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 11:10 AM   #16
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Delete a stubborn user directory on a 4500

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
blue68f100 is offline   Reply With Quote
Unread 06-06-2008, 11:15 AM   #17
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

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$
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 11:18 AM   #18
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Delete a stubborn user directory on a 4500

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
blue68f100 is offline   Reply With Quote
Unread 06-06-2008, 11:21 AM   #19
bitor
Cooling Savant
 
Join Date: Mar 2006
Location: USA
Posts: 257
Default Re: Delete a stubborn user directory on a 4500

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.
bitor is offline   Reply With Quote
Unread 06-06-2008, 02:11 PM   #20
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

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.
FortoReibas is offline   Reply With Quote
Unread 06-06-2008, 02:44 PM   #21
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Delete a stubborn user directory on a 4500

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
blue68f100 is offline   Reply With Quote
Unread 06-06-2008, 03:05 PM   #22
bitor
Cooling Savant
 
Join Date: Mar 2006
Location: USA
Posts: 257
Default Re: Delete a stubborn user directory on a 4500

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
bitor is offline   Reply With Quote
Unread 06-06-2008, 03:57 PM   #23
FortoReibas
Cooling Neophyte
 
Join Date: Jan 2007
Location: florida
Posts: 26
Default Re: Delete a stubborn user directory on a 4500

Point well taken.
FortoReibas is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:55 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
(C) 2005 ProCooling.com
If we in some way offend you, insult you or your people, screw your mom, beat up your dad, or poop on your porch... we're sorry... we were probably really drunk...
Oh and dont steal our content bitches! Don't give us a reason to pee in your open car window this summer...