Pro/Forums

Pro/Forums (http://forums.procooling.com/vbb/index.php)
-   Snap Server / NAS / Storage Technical Goodies (http://forums.procooling.com/vbb/forumdisplay.php?f=82)
-   -   Delete a stubborn user directory on a 4500 (http://forums.procooling.com/vbb/showthread.php?t=14930)

FortoReibas 06-06-2008 06:30 AM

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

bitor 06-06-2008 09:25 AM

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

FortoReibas 06-06-2008 09:30 AM

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 06-06-2008 09:38 AM

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.

blue68f100 06-06-2008 09:41 AM

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"

FortoReibas 06-06-2008 09:46 AM

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?

blue68f100 06-06-2008 09:55 AM

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.

FortoReibas 06-06-2008 09:58 AM

Re: Delete a stubborn user directory on a 4500
 
That sounds great. How do I do it with 3.2.025?

blue68f100 06-06-2008 10:01 AM

Re: Delete a stubborn user directory on a 4500
 
Use putty as you were then os shell after your loged in.

FortoReibas 06-06-2008 10:02 AM

Re: Delete a stubborn user directory on a 4500
 
Wonderful! How do I do it, though?

FortoReibas 06-06-2008 10:04 AM

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.

blue68f100 06-06-2008 10:10 AM

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.

FortoReibas 06-06-2008 10:15 AM

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.

blue68f100 06-06-2008 11:05 AM

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.

FortoReibas 06-06-2008 11:07 AM

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$

blue68f100 06-06-2008 11:10 AM

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.

FortoReibas 06-06-2008 11:15 AM

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$

blue68f100 06-06-2008 11:18 AM

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.

bitor 06-06-2008 11:21 AM

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.

FortoReibas 06-06-2008 02:11 PM

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.

blue68f100 06-06-2008 02:44 PM

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.

bitor 06-06-2008 03:05 PM

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

FortoReibas 06-06-2008 03:57 PM

Re: Delete a stubborn user directory on a 4500
 
Point well taken.


All times are GMT -5. The time now is 03:27 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...