[CentOS] .htaccess for script aliased directories
With the great assistance I got here I was able to get .htaccess to work on a centos 5.1 box running Apache 2.2.3 a few days ago. One other question. I am trying to protect a sub dir within the web space of a domain that is serving site statistics of awstats generated pages. The path to the dir is /home/user1/www/awstats. When testing, I am able to get a username and password prompt for the front page of the site, i.e. for www.mydomain.com, when I place the .htaccess file in www, but I can’t get a prompt for www.mydomain.com/awstats when I place the .htaccess in awstats. I am using the below script alias in the virtual domain conf.d file for this site the awstats directory is located in, so that awstats can generate the log file stats and alias them to the awstats dir which is empty: ScriptAlias /awstats/ /usr/local/awstats/wwwroot/cgi-bin/ I’m assuming that’s why I can’t get a login prompt – any suggestions as to how to protect the awstats dir with .htaccess for a script alias’ed directory? The .htaccess file which I was using and works fine for the main www dir is: AuthName “/www” AuthType Basic AuthUserFile /home/user1/.htpasswd Require user guest _ In a rush? Get real-time answers with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_realtime_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work SOLVED!
Date: Mon, 21 Apr 2008 14:12:20 +0530 From: [EMAIL PROTECTED] To: centos@centos.org Subject: Re: [CentOS] Can't get .htaccess to work pls click below URL http://openwebmail.org/openwebmail/download/redhat/howto/htaccess/HOWTO.HTML Thank you Indunil Jayasooriya ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos IT WORKS! Thanks so much Indunil! Been trying to get this to work for days, worked on my Centos 5.1 box (by substituting in my correct directory paths) Success finally! Pam _ Make i'm yours. Create a custom banner to support your cause. http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=TXT_TAGHM_MSN_Make_IM_Yours___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work SOLVED!
Date: Mon, 21 Apr 2008 14:12:20 +0530 From: [EMAIL PROTECTED] To: centos@centos.org Subject: Re: [CentOS] Can't get .htaccess to work pls click below URL http://openwebmail.org/openwebmail/download/redhat/howto/htaccess/HOWTO.HTML On Mon, Apr 21, 2008 at 2:01 PM, Kai Schaetzl [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] X-Rcpt-To: centos@centos.org Pam Astor wrote on Sun, 20 Apr 2008 20:03:16 -0400: Options not allowed here Please, by now you should know what this means, even after obstinately neglecting to look in the documentation. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com IT WORKS! Thanks so much Indunil! Been trying to get this to work for days, worked on my Centos 5.1 box (by substituting in my correct directory paths) Success finally! Pam _ Spell a grand slam in this game where word skill meets World Series. Get in the game. http://club.live.com/word_slugger.aspx?icid=word_slugger_wlhm_admod_april08___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work
That you got a server error is good. Here are the last two log file entries for that httpd request: you want to look in the *error* log if you look for errors!I could not access the site, which means exactly what? ;-) OK, starting from scratch this morning, here is the .htaccess file I am using which is inside of the /home/LinuxAccountName/www directory: Directory /home/LinuxAccountName/wwwOptions NoneAuthName UserNameIUsedToCreatePasswordWithAuthType BasicAuthUserFile /home/LinuxAccountName/.htpasswdRequire valid-user/Directory www above refers to the root or web directory - the lowest or first or base directory that is web accessable. And, this is the error I am getting from my httpd error log for this domain: [Sun Apr 20 07:47:40 2008] [alert] [client 75.46.110.14] /home/LinuxAccountName/.htaccess: Directory not allowed here When I point my web browser to the domain name that the above .htaccess is written for, I get the below error in my web browser: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.2.3 (CentOS) Server at www.mydomain.com Port 80 + _ Pack up or back up–use SkyDrive to transfer files or keep extra copies. Learn how. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work
The syntax for auth stuff changed between Apache 2.0 and 2.2 (which is used in CentOS 5). In particular, you'll need a AuthBasicProvider declaration: http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider Thans Paul, That's new news to me :) For the OP, I believe it would be: Location /secure AuthType basic AuthName private area AuthBasicProvider file AuthDBMType file AuthDBMUserFile /home/mysite/.htpasswd Require valid-user /Location Thanks, OK I tried that and it still would not work, I am not prompted for a username or password on the site I want to protect. Do I also need to add a new entry in httpd.conf or load a new apache module? _ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work
Do I also need to add a new entry in httpd.conf or load a new apache module? Not by default, no. There are several AllowOverrides statements in the default httpd.conf. Which did you modify? The one you wanted should be around line 327, looking like this: Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be All, None, or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all /Directory Change the AllowOverride to AuthConfig, and that should be just about it. You don't want to use the AuthDBMType unless you're using htdbm instead of htpasswd to generate your password file lists. You also need to make sure that apache has access to the area where you're putting your .htaccess. If you're stuffing this in your home directory like it looks above, apache doesn't have permissions in here unless you've modified your homedir to 711 from 700. Selinux can also cause some issues in here as well if you have it enabled and haven't changed contexts. Without fully seeing the config that you're using and some info about the dir you're trying to restrict, it'll be a little harder to offer more help. I reset AllowOverride to AuthConfig and it's still not working. OK the dir I am trying to password protect (named www) is the home or main or root directory of www.mydomain.com - it is owned by apache The permissions on www were set to 755. .htaccess is located inside www and is also owned by apache. .htpasswd is just below, or outside of www and outside of web access and is also owned by apache. I do have selinux enabled I believe. For my httpd.conf, I have one main configuration file in /etc/httpd/conf and for each virtual domain, I have individual www.mydomain.com.conf files with associated virtual host tags inside, and located in /etc/httpd/conf.d directory. I also tried placing the AllowOverride AuthConfig directive inside the individual conf.d virtual domain files but then apache would not reload, so I took them out and reloaded again. Are the individual conf.d files causing the problem? _ Going green? See the top 12 foods to eat organic. http://green.msn.com/galleries/photos/photos.aspx?gid=164ocid=T003MSN51N1653A___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work
Do I also need to add a new entry in httpd.conf or load a new apache module? Not by default, no. There are several AllowOverrides statements in the default httpd.conf. Which did you modify? The one you wanted should be around line 327, looking like this: Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be All, None, or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all /Directory Change the AllowOverride to AuthConfig, and that should be just about it. You don't want to use the AuthDBMType unless you're using htdbm instead of htpasswd to generate your password file lists. You also need to make sure that apache has access to the area where you're putting your .htaccess. If you're stuffing this in your home directory like it looks above, apache doesn't have permissions in here unless you've modified your homedir to 711 from 700. Selinux can also cause some issues in here as well if you have it enabled and haven't changed contexts. Without fully seeing the config that you're using and some info about the dir you're trying to restrict, it'll be a little harder to offer more help. I reset AllowOverride to AuthConfig and it's still not working. OK the dir I am trying to password protect (named www) is the home or main or root directory of www.mydomain.com - it is owned by apache The permissions on www were set to 755. .htaccess is located inside www and is also owned by apache. .htpasswd is just below, or outside of www and outside of web access and is also owned by apache. I do have selinux enabled I believe. For my httpd.conf, I have one main configuration file in /etc/httpd/conf and for each virtual domain, I have individual www.mydomain.com.conf files with associated virtual host tags inside, and located in /etc/httpd/conf.d directory. I also tried placing the AllowOverride AuthConfig directive inside the individual conf.d virtual domain files but then apache would not reload, so I took them out and reloaded again. Are the individual conf.d files causing the problem? In addition to the above, I have tried all three of the two below contents inside of my .htaccess file as suggested: Location /secure AuthType basic AuthName private area AuthBasicProvider file AuthDBMUserFile /home/maindir/.htpasswd Require valid-user /Location Location /secure AuthType basic AuthName private area AuthBasicProvider file Require valid-user /Location AuthUserFile /home/maindir/.htpasswd AuthType Basic AuthName My Secret Folder Require valid-user Going green? See the top 12 foods to eat organic. _ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work
For my httpd.conf, I have one main configuration file in /etc/httpd/conf and for each virtual domain, I have individual www.mydomain.com.conf files with associated virtual host tags inside, and located in /etc/httpd/conf.d directory. Okay. These are vhost configs only. You *can* set them globally in httpd.conf, but they can be overwritten later, so it's best to do it vhost by vhost. OK so do/set what vhost by vhost? Place the AllowOverride AuthConfig directive vhost by vhost? If that's what yo u meant, I tried again inserting the Directory / Options FollowSymLinks AllowOverride AuthConfig /Directory and the Directory / AllowOverride AuthConfig /Directory directives inside the individual vhost file and am still not getting a login prompt on the site. However this time, apache did reload for both directives. The reason why It did not reload last time, was because all I did earlier was insert the AllowOverride AuthConfig statement inside the vhost file, without the directory tags, so at least there is some progress there ;) I also tried placing the AllowOverride AuthConfig directive inside the individual conf.d virtual domain files but then apache would not reload, so I took them out and reloaded again. This depends on where within the vhost config you put them. Apache should tell you exactly what line of the config the error is on, and what exactly is wrong with it. I did not get indication from apache what line the syntax error was or what file either, all I got was: Reloading httpd: not reloading due to configuration syntax error [FAILED] But I guess that point is moot now since at least httpd is reloading. I have however got line-syntax indications for other apache errors, just don't know why I was not getting them for this error. Are the individual conf.d files causing the problem? Only because they aren't formatted properly. Location /secure AuthType basic AuthName private area AuthBasicProvider file AuthDBMUserFile /home/maindir/.htpasswd Require valid-user /Location This one is wrong because you're pointing a DBM statement to a flat user file which isn't in dbm format. Location /secure AuthType basic AuthName private area AuthBasicProvider file Require valid-user /Location This one sets the auth type outside everything else, and provides multiple names. AuthUserFile /home/maindir/.htpasswd AuthType Basic AuthName My Secret Folder Require valid-user Here's a statement that I know works, from my nagios setup at home, altered for what you're looking to do. Directory /change/this Options None AuthName Nagios Access AuthType Basic AuthUserFile /etc/httpd/htpasswd.users Require valid-user /Directory OK, just to make sure I am doing this exactly correct, do I substitute Nagios Access to whatever login name I used when I created my .htpasswd file? Also, for Directory /change/this, do I set this to the directory where my .htpasswd file is located? Or is this the path to the dir I am trying to protect? Or, for AuthUserFile /etc/httpd/htpasswd.users, is this the path and filename of the .htpasswd file? _ Get in touch in an instant. Get Windows Live Messenger now. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work
Jim, you forget that he's using .htaccess, the above cannot work there. He has to leave that out. Pam: if you can access the directory just fine this does *not* mean that you misconfigured your .htaccess file (although it looked like that as well), it means it is not getting used at all. An .htaccess file that is not allowed by server config or that contains wrong configuration throws a 500 Internal Server Error. You have also been told a while back I think that you should look in the logs. Did you do that? I don't remember having seen any response from you about that. Do the following: place a single fake command like this is a fake command in your .htaccess file and then access the directory. If you don't get a 500 error, the file is not getting used. Which means next step is to check your logs and your configuration why it's not getting used and also double-check that it's in the correct directory and you access the correct directory (as I don't know what content you have there this content may either be identifying it uniquely or not). You should also read the Apache documentation at httpd.apache.org, it may help you find that probably tiny mistake that you make, but we can't tell you as we don't see all of the picture. You should also read up on how you can achieve the password protection without an .htaccess file. This file is completely unnecessary if you have access to the apache conf, anyway. OK, I put the fake command in and now I'm getting an error via web page: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Here are the last two log file entries for that httpd request: 12.34.567.89 - - [19/Apr/2008:13:46:23 -0400] GET / HTTP/1.1 500 61612.34.567.89 - - [19/Apr/2008:13:47:12 -0400] GET / HTTP/1.1 200 20 I Changed the IP's. I guess there were two seperate errors, the last error - even when I corrected and removed the fake command and reloaded, I could not access the site, so the second error indicates the fake message removed but all else being (supposedly) correct the same in the conf.d file. Then I deleted .htaccess and .htpasswd and now I can again access the site again. _ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Can't get .htaccess to work
Hi, I'm trying to password protect one of my web accessable directories and I can't get .htaccess to work in a Centos 5.1 box Here's what I did I created an .htaccess file with the contents: AuthName Restricted Area AuthType Basic AuthUserFile /home/mysite/.htpasswd AuthGroupFile /dev/null require valid-user and I uploaded it to the dir I want to protect. Then I created my password outside of my web dir with the command: htpasswd -c .htpasswd pam then followed password prompts, created my password. So then I go to the site, and am not seeing any password required box, I can see site without a login. So then I figured it's not turned on in apache, and went to httpd.conf and changed AllowOverride None to AllowOverride AuthConfig When I reload, apache will not reload. What am I doing wrong? _ Pack up or back up–use SkyDrive to transfer files or keep extra copies. Learn how. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Can't get .htaccess to work
The syntax for auth stuff changed between Apache 2.0 and 2.2 (which is used in CentOS 5). In particular, you'll need a AuthBasicProvider declaration: http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider Hi, Thanks much, I read the URL, it is a bit too cryptic for me, can you or someone point me to a bit clearer step by step for setting this up correctly? _ Get in touch in an instant. Get Windows Live Messenger now. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] AWStats included with Centos 5.1 distro?
Hi, Is AWStats included in the Centos 5.1 Distro? _ Going green? See the top 12 foods to eat organic. http://green.msn.com/galleries/photos/photos.aspx?gid=164ocid=T003MSN51N1653A___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] AWStats included with Centos 5.1 distro?
Got it. How is the code security wise? Should I stay away from web based log analyzers al together for a server hosting e-commerce? Date: Wed, 16 Apr 2008 10:08:22 -0500 From: [EMAIL PROTECTED] To: centos@centos.org Subject: Re: [CentOS] AWStats included with Centos 5.1 distro? Quoting Pam Astor [EMAIL PROTECTED]:Hi, Is AWStats included in the Centos 5.1 Distro? No, but you can get it from rpmforge. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos _ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Apache Authorization Access Control - location of, htpasswd in Centos 5.1
I don't think it's the path of htpasswd that's the problem but here it is anyway: /usr/bin/htpasswd. The problem is more likely that the directory you're trying to create the password file in with the command htpasswd -c /passwd/passwords famsite doesn't exist. Thanks Iain, OK I just created the directory /passwd/passwordsand re ran the command as root, still no luck. _ Get in touch in an instant. Get Windows Live Messenger now. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Apache Authorization Access Control - location of htpasswd in Centos 5.1?
I tried creating a password file by executing htpasswd -c /passwd/passwords famsite but apparently htpasswd is not in my path, I'm getting the cannot create file /passwd/passwords famsite error. Anyone know where the default location of htpasswd is on a centos 5.1 install? Or how to generate a password file on a centos 5.1 install? There's a utility called 'which' you can use to discover the location of certain apps you want to learn about. Thanks! Ok I ran /usr/bin/htpasswd -c /passwd/passwords famsite as root, and still got the cannot create file error. _ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Apache Authorization Access Control - location of htpasswd in Centos 5.1?
I tried creating a password file by executing htpasswd -c /passwd/passwords famsite but apparently htpasswd is not in my path, I’m getting the “cannot create file /passwd/passwords famsite” error. That rather sounds like the path /passwd/passwords does not exist or is not writable. Well, I just tried chomd 777 passwords and still the same problem. _ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Apache Authorization Access Control - location ofhtpasswd in Centos 5.1?
Just for the sake of simplicity, please create your htpasswd file in the tmp directory and copy it elsewhere. Any user can write in /tmp .. although if you are using the root user this should not be an issue. Yes I'm doing this as root. _ More immediate than e-mail? Get instant access with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_instantaccess_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Apache Authorization Access Control - locationofhtpasswd in Centos 5.1?
Does the /passwd directory exist? It does now. It did not when I first ran the command, however I just created the directory /passwd/passwordsand re ran the command as root, and still no luck. I think you only need to create the directory /passwd, then use 'touch' to create the file, passwords Thanks Thomas, Not familiar with the touch command, can you point me to info on it, or show the command syntax? Not sure if htpasswd creates the password file. If not, the as root, run: touch passwords ,in the /passwd directory. It will be an empty file, but the 'htpasswd -c' should create this for you. I think you have a permissions problem so if you create the passwrds file with touch, you probably won't be able to add the password to it using htpasswd either. Where are you creating these directories? In the past when I used this, my passwd directory was /var/www/passwd/ I created /passwd/passwords in the main directory / and then ran the /usr/bin/htpasswd -c /passwd/passwords famsite command. I chmoded 777 the passwords dir so I don't think that's the problem. I'm doing this as root. _ Use video conversation to talk face-to-face with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Apache Authorization Access Control - location of htpasswd in Centos 5.1?
I’m trying to set up a private family web site for genealogy, and want to set up Apache Authorization access control for this site, and once the user has logged in has access to the entire site. I’ve been reading the info at http://httpd.apache.org/docs/2.2/howto/auth.html to learn how to do this. I’m just planning on passing out the same username and password to all family members and allow everyone in the family to use the same username and password, to keep things simple. The server is running Centos 5.1. Is there any reason not to give each user his own login:password? it starts as user friendly and it ends up as a zombie... OK I guess that makes sense, you mean if several people are logging in as the same user the process will stay running and it's easier to hack? The first problem I am running into – I’m trying to use the htpasswd utility that came with Apache 2.2 to create a password file. The default location according to above URL is in /usr/local/apache2/bin/htpasswd but apparently it’s not located there in my install. I tried creating a password file by executing htpasswd -c /passwd/passwords famsite but apparently htpasswd is not in my path, I’m getting the “cannot create file /passwd/passwords famsite” error. On another note, with this forums help I was able to create the user and password, so at least that problem is resolved. you can have a lot of fun under unix. try these: # cp /a/foo /b/bar ...How about creating the directory? # mkdir /passwd # cd /passwd # htpsswd -c passwords famsite Yup that works, at least one problem solved thanks. that said, /passwd is a bad choice. /etc/httpd/security is better. OK will do. Question though, if both /passwd and /etc/httpd/security are both owned by apache user, then is there really a difference in security between using either /passwd or /etc/httpd/security ? As long as my permissions are properly set? _ Pack up or back up–use SkyDrive to transfer files or keep extra copies. Learn how. hthttp://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Apache Authorization Access Control - location of, htpasswd in Centos 5.1
It sounds like you are very used to the 'Windows' way of doing things. I don't recommend creating a directory in the root filesystem for this purpose. Its a bad idea, and not even a good idea in Windows. Is there any real need to deny outsiders access to your genealogy site? You would probably get much help from outsiders (long-forgotten 2nd cousins etc) who stumble upon your site. Yes you are probabally right, just curious though about using apache access control for a site, never did it before, maybe at some point I'll have a use for it. Question though, if my permissions are set properly, to maybe 555 or 644 and the directories are owned by apache, then does it really matter where the directory is? Or is it much easier to hack if it's in the root file system? If so, why is it easier to hack? This solution you are wanting, is not often used because of its inflexibility. I only see it used by extreme noobs, wanting to password-protect an area of their site. While family members will have their interest piqued by having access to a 'secret' site, their interest may wane at the annoyance of having to enter a user/password each time and 'disappear' once the initial novelty wears off. You are prob. correct there. I guess the only reason why I thought a password protected site would be a good idea, is because I am using phpgedview, and names are viewable and anyone can edit it who has a phpgedview account. I figured that people still living who want to add their personal infomration to the family tree might be less likely to do so if they think their names and personal info are publically view able. If you are wanting 'security through obscurity', an even quicker solution is simply to place an index.html file in your web directory /var/www/html This will stop a casual user from browsing and getting a listing of files at your site, since they will get a blank page if they go to www.yoursite.com Now add a directory (say) /familygenealogy2 and put all your genealogy web files in this directory. So for any member of your family to browse the site, they just need to point the browser to (and bookmark) www.yoursite.com/familygenealogy2 and once there. can browse any file you have placed. This will have the same security as requiring a user/password, since no-one can see the files unless they know the directory /familygenealogy2 exists. I really, really would choose this solution, rather than a single user/password. Your secirity through obscurity idea is a good one for static pages, but my hope is that other distant family members will want to add their info and that maybe they would be hesitant to do so if they think others on the net can see it. I have a robots.txt User-Agent: *Disallow: / file, but don't some search engines still ignore them? Anyway maybe I am just overly concerned about this privacy thing. _ Get in touch in an instant. Get Windows Live Messenger now. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Apache Authorization Access Control - location of htpasswd in Centos 5.1?
I tried creating a password file by executing htpasswd -c /passwd/passwordsfamsite but apparently htpasswd is not in my path, I’m getting the“cannot create file /passwd/passwords famsite” error. That rather sounds like the path /passwd/passwords does not exist or is not writable. Well, I just tried chomd 777 passwords and still the same problem. Can you show us what the result of the ls -l /passwd/passwords command is? Thanks for asking there, actually the problem has been solved, I deleted the passwords dir and chmoded 777 the passwd dir and the unsername and password were created by htpasswd. _ Pack up or back up–use SkyDrive to transfer files or keep extra copies. Learn how. hthttp://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Un Installing a hard drive in a Centos 5.1 box
OK when you say livecd, do you mean the Centos 5.1 distro disks? I have a full set of them, a 7 disk set I got from Linux Central. Can I just boot off disk 1 from my set? LiveCD as in the livecd: eg : http://mirrors.kernel.org/centos/5.1/isos/i386/CentOS-5.1-i386-LiveCD.iso ...or, if I left the install the way it is now, are there any dis advantages of leaving the file system the way it is - spread over two hard drives? nope, just that if you loose one drive, you loose everything ( potentially ) on the entire filesystem Should just get another hard drive and back it up the way it is? Would ther be any problems with my backup if left the way it is? Both those should be fine Or ahould I just do a complete re install of the OS after backing up my data... What do you reccomend -leave it as is, re configure it, or re install it? I'd recommend you spend the time in learning about lvm and resize the filesystem down to one drive, LVM does take about 2 - 3 hours to work out, but once you do work it out - its fantastic and something that makes Linux really worthwhile :D but that is my personal opinion, you should still do whatever you feel like - it is, after all, a free world :D Hi there, I downloaded and burned the LiveCD, and am able to boot off ot it, at least I got off to a start! You mentioned a few days ago the LVM HowTo - Is this what you were talking about: http://tldp.org/HOWTO/LVM-HOWTO/ ? Or did you mean someplace on the Centos site? I'm going through the other URL you posted - http://www.centos.org/docs/5/, have not found anything specifically titled lvm how to yet. Also I tried booting off of LiveCD and got the below warning, wondered if you could give me a clue as to where to start: Warning: Cannot Find Root File System! Create symlin /dev/root and then exit this shell to continue the boot sequence. Bash: No job control in this shell bash-3.1# _ Windows Live Hotmail is giving away Zunes. http://www.windowslive-hotmail.com/ZuneADay/?locale=en-USocid=TXT_TAGLM_Mobile_Zune_V3___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Un Installing a hard drive in a Centos 5.1 box
I'm fairly new to Linux and I'm trying to un install a hard drive from my Centos 5.1 box running KDE. When I built the PC, I installed two 500 gig maxtors in the tower, then I installed Centos. Now I've decided that I want to remove the slave drive and use it as an external backup drive - I am mounting it into one of those external drive cases with a built in fan. When I physically removed the drive and restarted the PC, centos would not boot up and went into a kernel panic. I'm sure I'm supposed to somehow unmount the thing before I do this, and that's my question - how do I un-install the hard drive - software wise - so that on next boot up, centos don't go crazy looking for it? run # mount this will show the mounted partitions. find the partitions that are on the second drive and unmount them: # umount /path/to/partition if a service uses them, you'll see an error. you will need to fix the errors until you can unmount them. then comment out these partitions in /etc/fstab. OK this is what I have when I run mount - does it appear that I have both drives on one volume?: /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) If the machine panics at boot time, there is a good chance that you installed with LVM and its got both the drives into one volume. You will need to reinstall that second harddrive, then work out the process of shrinking the filesystem down to only 1 drive, then remove the second drive. The scope of this work might be too much for an email, so I can best point you at the LVM HowTo. There are also some good lvm tips in the CentOS5 docs ( http://www.centos.org/docs/5/ ) am Astor wrote: OK this is what I have when I run mount - does it appear that I have both drives on one volume?: /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) what output to do you get from : pvdisplay; vgdisplay; lvdisplay [root at localhost ~]# pvdisplay; vgdisplay; lvdisplay --- Physical volume --- PV Name /dev/sdb1 VG Name VolGroup00 PV Size 465.76 GB / not usable 9.50 MB Allocatable yes (but full) PE Size (KByte) 32768 Total PE 14904 Free PE 0 Allocated PE 14904 PV UUID IAmE1f-dCMo-c035-cSQQ-g9yE-6yOo-mfKhHv --- Physical volume --- PV Name /dev/sda2 VG Name VolGroup00 PV Size 465.66 GB / not usable 3.56 MB Allocatable yes (but full) PE Size (KByte) 32768 Total PE 14901 Free PE 0 Allocated PE 14901 PV UUID fi5A7U-dao0-ruuP-TSc0-LfFu-7yRL-iKnwGr --- Volume group --- VG Name VolGroup00 System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 2 Act PV 2 VG Size 931.41 GB PE Size 32.00 MB Total PE 29805 Alloc PE / Size 29805 / 931.41 GB Free PE / Size 0 / 0 VG UUID pwO7bQ-0eRs-W8O4-b4uf-hYe6-JIm6-27p8wu --- Logical volume --- LV Name /dev/VolGroup00/LogVol00 VG Name VolGroup00 LV UUID avhFcY-30N6-2BPz-A89X-Ai0V-v5B7-xxzhIe LV Write Access read/write LV Status available # open 1 LV Size 929.47 GB Current LE 29743 Segments 2 Allocation inherit Read ahead sectors 0 Block device 253:0 --- Logical volume --- LV Name /dev/VolGroup00/LogVol01 VG Name VolGroup00 LV UUID ZW2z5f-5x58-0vDI-ru5S-iZge-mVE6-yVp160 LV Write Access read/write LV Status available # open 1 LV Size 1.94 GB Current LE 62 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1 And... [root at localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 901G 6.7G 848G 1% / /dev/sda1 99M 18M 76M 20% /boot tmpfs 1.9G 0 1.9G 0% /dev/shm [root at localhost ~]# yup, its all 1 Volume, you are going to need to shrink the lv's - then get your volgroup onto /dev/sda only. info on howto do that is in the lvm howto. also, I'd recommend you download the centos-5.1/livecd and actually do the work once booted from the livecd. shinking filesystems requires you to have the filesystem unmounted, so doing it from the livecd is the only way you are going to manage it here. OK when you say livecd, do you mean the Centos 5.1 distro disks? I have a full set of them, a 7 disk set I got from Linux Central. Can I just boot off disk 1 from my set? ...or, if I left the install the way it is now, are there any dis advantages of leaving the file system the way it is - spread over two hard drives? Should just get another hard drive and back it up the way it is? Would ther be any problems with my backup if left the way it is? Or ahould I just do a complete re install of the OS after backing up my data... What do you reccomend -leave it as is, re configure it, or re install it? _ How well do you know your
SOLVED: [CentOS] CDRW-DVD Mount Problem, Centos 5.1, Intel board...
Problem has been solved: sudo mount -t iso9660 /dev/cdrom /mnt/cdrom -o mounted the drive after adding mount /mnt/cdrom to /etc/festab. - Original Message From: Pam Astor [EMAIL PROTECTED] To: centos@centos.org Sent: Monday, March 17, 2008 1:45:16 PM Subject: [CentOS] CDRW-DVD Mount Problem, Centos 5.1, Intel board... !-- _filtered {margin:0.79in;} P {margin-bottom:0.08in;} -- I'm having a problem mounting my new CDRW DVD in my new machine I just built. The motherboard is an Intel DP35DP, and I connected the CDRW DVD via ribbon cable into the motherboard IDE slot. Centos 5.1 is installed and functioning fine so far (other than this problem). I can't mount the CDRW-DVD unit. I was able to run cdrecord with the command: cdrecord -v speed=2 dev=6,0,0 -data /home/mydir/Desktop/backup_bootimage.iso to copy a file that I downloaded, apparently the data copy went fine, but when I ejected the CD and then tried to re mount the same CD to read the file, it would not mount. So then I tried mounting the Centos 5.1 distro disk that I used to install the OS, and am having the same problem with the distro disk. If anyone could give me some suggestions or insights I'd appreciate it. I have provided some data below. I tried the below commands after ejecting the CD and then executing the commands while the drawer is open, and I got the below outputs: # sudo mount -t iso9660 /dev/sr0 /mnt/cdrom mount: special device /dev/sr0 does not exist And: # mount /dev/cdrom /mnt/cdrom mount: block device /dev/cdrom is write-protected, mounting read-only mount: you must specify the filesystem type And: # mount /dev/scd0 /mnt/cdrom mount: block device /dev/scd0 is write-protected, mounting read-only mount: you must specify the filesystem type And: #sudo mount -t iso9660 /dev/scd0 /mnt/cdrom mount: block device /dev/scd0 is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/scd0, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so And: sudo mount -t iso9660 /dev/scd0 /mnt/cdrom -o ro,unhide mount: wrong fs type, bad option, bad superblock on /dev/scd0, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so And: sudo mount -t iso9660 /dev/sr0 /mnt/cdrom -o ro,unhide mount: special device /dev/sr0 does not exist Here is info from cat /etc/fstab, cat /proc/mounts, fdisk -l, and cdrecord -scanbus and dmesg | grep -i -e CD -e CD-ROM respectively: From cat/etc/fstab: /dev/VolGroup00/LogVol00 / ext3 defaults 11 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfsdefaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs/sys sysfs defaults 0 0 proc /proc proc defaults 00 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 From cat /proc/mounts: [EMAIL PROTECTED]/]# cat /proc/mounts rootfs / rootfs rw 0 0 /dev/root / ext3rw,data=ordered 0 0 /dev /dev tmpfs rw 0 0 /proc /proc proc rw0 0 /sys /sys sysfs rw 0 0 none /selinux selinuxfs rw 00 /proc/bus/usb /proc/bus/usb usbfs rw 0 0 devpts /dev/ptsdevpts rw 0 0 /dev/sda1 /boot ext3 rw,data=ordered 0 0 tmpfs/dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw0 0 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 00 /etc/auto.misc /misc autofsrw,fd=6,pgrp=2758,timeout=300,minproto=5,maxproto=5,indirect 00 -hosts /net autofsrw,fd=11,pgrp=2758,timeout=300,minproto=5,maxproto=5,indirect 00 fdisk -l Disk /dev/sda: 500.1 GB, 500107862016bytes 255 heads, 63 sectors/track, 60801 cylinders Units =cylinders of 16065 * 512 = 8225280 bytes Device Boot Start EndBlocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 1460801 488279610 8e Linux LVM Disk /dev/sdb: 500.1 GB,500107862016 bytes 255 heads, 63 sectors/track, 60801cylinders Units = cylinders of 16065 * 512 = 8225280 bytes DeviceBoot Start End Blocks Id System /dev/sdb1 * 1 60801 488384001 8eLinux LVM From cdrecord -scanbus: scsibus6: 6,0,0 600) 'TSSTcorp''CDDVDW SH-S202J ' 'SB00' Removable CD-ROM 6,1,0 601) * 6,2,0602) * 6,3,0 603) * 6,4,0 604) * 6,5,0 605) * 6,6,0 606)* 6,7,0 607) * From dmesg | grep -i -e CD -e CD-ROM: [EMAIL PROTECTED] etc]# dmesg | grep -i -e CD -e CD-ROM uhci_hcd :00:1a.0: UHCI Host Controller uhci_hcd :00:1a.0: new USB bus registered, assigned bus number 1 uhci_hcd :00:1a.0: irq 193, io base 0x30e0 uhci_hcd :00:1a.1: UHCI Host Controller uhci_hcd :00:1a.1: new USB bus registered, assigned bus number 2 uhci_hcd :00:1a.1: irq 74, io base 0x30c0 uhci_hcd :00:1a.2: UHCI Host Controller uhci_hcd :00:1a.2: new USB bus registered, assigned bus number 3 uhci_hcd :00:1a.2: irq 177, io base 0x30a0 uhci_hcd :00:1d.0: UHCI Host Controller uhci_hcd :00:1d.0: new USB bus registered, assigned bus number 4 uhci_hcd :00:1d.0: irq 82, io base 0x3080 uhci_hcd :00:1d.1: UHCI Host Controller
[CentOS] Linux drivers for HP C7710a Scanner?
Hi, Does anyone know if there exist drivers for the Hewlett Packard C7710a scanner? I checked HP, Sourceforge and SANE sites, so far, no luck. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CDRW-DVD Mount Problem, Centos 5.1, Intel board...
!-- @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } -- I'm having a problem mounting my new CDRW DVD in my new machine I just built. The motherboard is an Intel DP35DP, and I connected the CDRW DVD via ribbon cable into the motherboard IDE slot. Centos 5.1 is installed and functioning fine so far (other than this problem). I can't mount the CDRW-DVD unit. I was able to run cdrecord with the command: cdrecord -v speed=2 dev=6,0,0 -data /home/mydir/Desktop/backup_bootimage.iso to copy a file that I downloaded, apparently the data copy went fine, but when I ejected the CD and then tried to re mount the same CD to read the file, it would not mount. So then I tried mounting the Centos 5.1 distro disk that I used to install the OS, and am having the same problem with the distro disk. If anyone could give me some suggestions or insights I'd appreciate it. I have provided some data below. I tried the below commands after ejecting the CD and then executing the commands while the drawer is open, and I got the below outputs: # sudo mount -t iso9660 /dev/sr0 /mnt/cdrom mount: special device /dev/sr0 does not exist And: # mount /dev/cdrom /mnt/cdrom mount: block device /dev/cdrom is write-protected, mounting read-only mount: you must specify the filesystem type And: # mount /dev/scd0 /mnt/cdrom mount: block device /dev/scd0 is write-protected, mounting read-only mount: you must specify the filesystem type And: #sudo mount -t iso9660 /dev/scd0 /mnt/cdrom mount: block device /dev/scd0 is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/scd0, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so And: sudo mount -t iso9660 /dev/scd0 /mnt/cdrom -o ro,unhide mount: wrong fs type, bad option, bad superblock on /dev/scd0, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so And: sudo mount -t iso9660 /dev/sr0 /mnt/cdrom -o ro,unhide mount: special device /dev/sr0 does not exist Here is info from cat /etc/fstab, cat /proc/mounts, fdisk -l, and cdrecord -scanbus and dmesg | grep -i -e CD -e CD-ROM respectively: From cat/etc/fstab: /dev/VolGroup00/LogVol00 / ext3 defaults 11 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfsdefaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs/sys sysfs defaults 0 0 proc /proc proc defaults 00 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 From cat /proc/mounts: [EMAIL PROTECTED]/]# cat /proc/mounts rootfs / rootfs rw 0 0 /dev/root / ext3rw,data=ordered 0 0 /dev /dev tmpfs rw 0 0 /proc /proc proc rw0 0 /sys /sys sysfs rw 0 0 none /selinux selinuxfs rw 00 /proc/bus/usb /proc/bus/usb usbfs rw 0 0 devpts /dev/ptsdevpts rw 0 0 /dev/sda1 /boot ext3 rw,data=ordered 0 0 tmpfs/dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw0 0 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 00 /etc/auto.misc /misc autofsrw,fd=6,pgrp=2758,timeout=300,minproto=5,maxproto=5,indirect 00 -hosts /net autofsrw,fd=11,pgrp=2758,timeout=300,minproto=5,maxproto=5,indirect 00 fdisk -l Disk /dev/sda: 500.1 GB, 500107862016bytes 255 heads, 63 sectors/track, 60801 cylinders Units =cylinders of 16065 * 512 = 8225280 bytes Device Boot Start EndBlocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 1460801 488279610 8e Linux LVM Disk /dev/sdb: 500.1 GB,500107862016 bytes 255 heads, 63 sectors/track, 60801cylinders Units = cylinders of 16065 * 512 = 8225280 bytes DeviceBoot Start End Blocks Id System /dev/sdb1 * 1 60801 488384001 8eLinux LVM From cdrecord -scanbus: scsibus6: 6,0,0 600) 'TSSTcorp''CDDVDW SH-S202J ' 'SB00' Removable CD-ROM 6,1,0 601) * 6,2,0602) * 6,3,0 603) * 6,4,0 604) * 6,5,0 605) * 6,6,0 606)* 6,7,0 607) * From dmesg | grep -i -e CD -e CD-ROM: [EMAIL PROTECTED] etc]# dmesg | grep -i -e CD -e CD-ROM uhci_hcd :00:1a.0: UHCI Host Controller uhci_hcd :00:1a.0: new USB bus registered, assigned bus number 1 uhci_hcd :00:1a.0: irq 193, io base 0x30e0 uhci_hcd :00:1a.1: UHCI Host Controller uhci_hcd :00:1a.1: new USB bus registered, assigned bus number 2 uhci_hcd :00:1a.1: irq 74, io base 0x30c0 uhci_hcd :00:1a.2: UHCI Host Controller uhci_hcd :00:1a.2: new USB bus registered, assigned bus number 3 uhci_hcd :00:1a.2: irq 177, io base 0x30a0 uhci_hcd :00:1d.0: UHCI Host Controller uhci_hcd :00:1d.0: new USB bus registered, assigned bus number 4 uhci_hcd :00:1d.0: irq 82, io base 0x3080 uhci_hcd :00:1d.1: UHCI Host Controller uhci_hcd :00:1d.1: new USB bus registered, assigned bus number 5 uhci_hcd :00:1d.1: irq 201, io base 0x3060 usb 2-1: new low speed USB device using uhci_hcd and address 2 uhci_hcd :00:1d.2: UHCI Host Controller uhci_hcd :00:1d.2: new USB bus
[CentOS] Un Installing a hard drive in a Centos 5.1 box
Hi Guys, I'm fairly new to Linux and I'm trying to un install a hard drive from my Centos 5.1 box running KDE. When I built the PC, I installed two 500 gig maxtors in the tower, then I installed Centos. Now I've decided that I want to remove the slave drive and use it as an external backup drive - I am mounting it into one of those external drive cases with a built in fan. When I physically removed the drive and restarted the PC, centos would not boot up and went into a kernel panic. I'm sure I'm supposed to somehow unmount the thing before I do this, and that's my question - how do I un-install the hard drive - software wise - so that on next boot up, centos don't go crazy looking for it? Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Un Installing a hard drive in a Centos 5.1 box
When I physically removed the drive and restarted the PC, centos would not boot up and went into a kernel panic. I'm sure I'm supposed to somehow unmount the thing before I do this, and that's my question - how do I un-install the hard drive - software wise - so that on next boot up, centos don't go crazy looking for it? If the machine panics at boot time, there is a good chance that you installed with LVM and its got both the drives into one volume. You will need to reinstall that second harddrive, then work out the process of shrinking the filesystem down to only 1 drive, then remove the second drive. The scope of this work might be too much for an email, so I can best point you at the LVM HowTo. There are also some good lvm tips in the CentOS5 docs ( http://www.centos.org/docs/5/ ) OK this is what I have when I run mount - does it appear that I have both drives on one volume?: !-- @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } -- /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Un Installing a hard drive in a Centos 5.1 box
- Original Message From: Karanbir Singh [EMAIL PROTECTED] To: CentOS mailing list centos@centos.org Sent: Sunday, March 16, 2008 6:44:33 PM Subject: Re: [CentOS] Un Installing a hard drive in a Centos 5.1 box Pam Astor wrote: OK this is what I have when I run mount - does it appear that I have both drives on one volume?: /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) what output to do you get from : pvdisplay; vgdisplay; lvdisplay [EMAIL PROTECTED] ~]# pvdisplay; vgdisplay; lvdisplay --- Physical volume --- PV Name /dev/sdb1 VG Name VolGroup00 PV Size 465.76 GB / not usable 9.50 MB Allocatable yes (but full) PE Size (KByte) 32768 Total PE 14904 Free PE 0 Allocated PE 14904 PV UUID IAmE1f-dCMo-c035-cSQQ-g9yE-6yOo-mfKhHv --- Physical volume --- PV Name /dev/sda2 VG Name VolGroup00 PV Size 465.66 GB / not usable 3.56 MB Allocatable yes (but full) PE Size (KByte) 32768 Total PE 14901 Free PE 0 Allocated PE 14901 PV UUID fi5A7U-dao0-ruuP-TSc0-LfFu-7yRL-iKnwGr --- Volume group --- VG Name VolGroup00 System ID Formatlvm2 Metadata Areas2 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV0 Cur LV2 Open LV 2 Max PV0 Cur PV2 Act PV2 VG Size 931.41 GB PE Size 32.00 MB Total PE 29805 Alloc PE / Size 29805 / 931.41 GB Free PE / Size 0 / 0 VG UUID pwO7bQ-0eRs-W8O4-b4uf-hYe6-JIm6-27p8wu --- Logical volume --- LV Name/dev/VolGroup00/LogVol00 VG NameVolGroup00 LV UUIDavhFcY-30N6-2BPz-A89X-Ai0V-v5B7-xxzhIe LV Write Accessread/write LV Status available # open 1 LV Size929.47 GB Current LE 29743 Segments 2 Allocation inherit Read ahead sectors 0 Block device 253:0 --- Logical volume --- LV Name/dev/VolGroup00/LogVol01 VG NameVolGroup00 LV UUIDZW2z5f-5x58-0vDI-ru5S-iZge-mVE6-yVp160 LV Write Accessread/write LV Status available # open 1 LV Size1.94 GB Current LE 62 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1 And... [EMAIL PROTECTED] ~]# df -h FilesystemSize Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 901G 6.7G 848G 1% / /dev/sda1 99M 18M 76M 20% /boot tmpfs 1.9G 0 1.9G 0% /dev/shm [EMAIL PROTECTED] ~]# Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos