rmdir issue

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

rmdir issue

Postby sahrempire » Wed Jan 11, 2012 7:17 pm

Hi,

Currently I am trying to delete a directory on my amahi server. the folder was firefox, extracted. I cannot delete it through the gui, and the version of rmdir on fedora 14 apparently does not have the -r option, only the --ignore-fail-on-empty option which does not seem to work. In any case, I need either advice on how to delete this through the shell, or I need to know how to login (temporarily, I know the security risks) as root, as for some reason I cannot currently, I know the password is correct, as I can su - but login appears to fail through the gui. I looked in /etc/shadow, login does not appear to be disallowed for root, but perhaps you guys have locked something down.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: rmdir issue

Postby bigfoot65 » Wed Jan 11, 2012 7:37 pm

Ok, to access root you do

Code: Select all

su -
and enter the root password you choose during the Fedora install.

To remove a directory, do

Code: Select all

rm -rf dirname
Recommend you check the wiki for help as well. We list some basic linux commands there.
http://wiki.amahi.org/index.php/Linux-hda_commands
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

Re: rmdir issue

Postby sahrempire » Wed Jan 11, 2012 7:49 pm

I am aware of how to use the su command, as you can tell from my post I asked about GUI login. I am also familiar with the rm and rmdir commands. The rm -rf command is not usable in my installation. looking at the man page, the only options listed are --help, --ignore..., -p, -v, and -version.

Also, I attempted to update firefox as described on the wiki, I encountered no errors, and in fact got a message confirming installation of the update to version 9... unfortunatly this update doesnt appear to have taken effect as the about in firefox still shows 3.6.24 I intend on restarting to see if that resolves the issue, but i hope that isnt necessary, servers are meant to be rebooted as little as possible...especially when they are providing network services such as DNS and DHCP.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: rmdir issue

Postby bigfoot65 » Wed Jan 11, 2012 8:03 pm

Ok, well sorry I misread your post. You probably have permissions issue. Check that the folders are owned by your user. If they are owned by root, then you may have to change the ownership.

I don't think you can login to the GUI as root with Fedora, but I could be wrong. If the -rf option is not available, then there may be something wrong with your install. I have it and am using Fedora 14.

The FireFox guidance in the wiki is not an Fedora official upgrade. That could be why you are having problems. That is user contributed and its not supported by Amahi. Not sure what the issue could be, but the guidance might need adjusted.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

Re: rmdir issue

Postby sahrempire » Wed Jan 11, 2012 8:19 pm

Well in that case I appoligise for snapping. :)

Firefox did upgrade when rebooted, you guys just may want to mention that on the wiki page.

As for the rmdir, I dont know what the issue is with that but I just went through and rid it manually deleting the files with rm * and the empty directories with rmdir *. Annoying, and it took forever, but it worked. As for the gui login, im not sure. Ive used fedora several times in the past, and of course there is rarely a need to login as root, so I dont remember if I ever have, I still think it is a good idea to have the option. i'll do some quick research, see what I can find out.

EDIT: a quick google search confirmed your suspicions, gui login is not enabled in fedora 14. instructions for bypass are posted here if needed:

http://www.tejasbarot.com/2010/11/03/lo ... fedora-14/

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: rmdir issue

Postby bigfoot65 » Wed Jan 11, 2012 8:23 pm

No problem. I have added the reboot note to the wiki page.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 40 guests