Re: rmuser failed / cannot readd user

2008-04-30 Thread Hartleigh Burton

Problem solvered ;)

Thanks Matthew.



Hartleigh Burton
Network Support Officer





Direct +61 7 3166 2202
Telephone +61 7 3166 2202
Mobile 0421 646 978
Facsimile +61 7 3349 8806
Email [EMAIL PROTECTED]
MSN IM [EMAIL PROTECTED]
Address 701 Macarthur Avenue Central, Eagle Farm, QLD, 4009.

On 30/04/2008, at 3:57 PM, Matthew Seaman wrote:


Hartleigh Burton wrote:

I added a user called mrawebuser, which failed because there was  
not enough free space on / at the time. Now when I try to add the  
user again it says the user already exists when it doesn't. I have  
used rmuser to remove the account and also manually check /etc/ 
passwd, /etc/master.passwd,  /etc/group - none of these files  
contain any reference to mrawebuser. If I repeat the rmuser  
command it will find the user every time.


Run this command:

  # pwd_mkdb -p /etc/master.passwd

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: a monster stole my /

2008-04-29 Thread Hartleigh Burton

That solved my problem thank you Colin.

Stopped MySQL, unmounted /dev/da1p1 - /db, removed old MySQL data  
files, remounted da1p1  restarted MySQL.


intranet# df -H
Filesystem   SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a  1.0G 91M864M10%/
devfs1.0k1.0k  0B   100%/dev
/dev/da0s1e  1.0G229k954M 0%/tmp
/dev/da0s1f   62G5.1G 52G 9%/usr
/dev/da0s1d  5.2G2.3G2.4G49%/var
devfs1.0k1.0k  0B   100%/var/named/dev
/dev/da1p1   3.6T733G2.6T22%/db





On 29/04/2008, at 3:34 PM, Colin Yuile wrote:


On Tue, 29 Apr 2008 14:40:09 +1000
Hartleigh Burton [EMAIL PROTECTED] wrote:


Hiya!

I have a problem with / currently being at 108% capacity. I have  
found
a previous thread in the archives which explains a few questions  
but I
can't find what is taking up all the additional space. At best  
without

destroying what I still do not understand I can manage to get / to
about 101% capacity.

To answer a couple of potential questions straight up, there is
nothing in /root and /tmp is on a separate partition.

intranet# df -h
Filesystem   SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a  989M986M-76M   108%/
devfs1.0K1.0K  0B   100%/dev
/dev/da0s1e  989M216K910M 0%/tmp
/dev/da0s1f   58G4.8G 48G 9%/usr
/dev/da0s1d  4.8G2.2G2.3G49%/var
/dev/da1p1   3.3T682G2.4T22%/db
devfs1.0K1.0K  0B   100%/var/named/ 
dev


intranet# du -h -d1
2.0K./.snap
1.5K./dev
218K./tmp
4.8G./usr
2.2G./var
1.7M./etc
2.0K./cdrom
2.0K./dist
1.1M./bin
 71M./boot
4.4M./lib
360K./libexec
2.0K./media
512B./net
2.0K./proc
3.8M./rescue
 26K./root
4.1M./sbin
512B./host
682G./db
689G.



If I move the old kernel/GENERIC files from /boot I can manage to get
back to 101%, I really have no idea where the rest of the space has
gone though. Is there any way to locate large files on a specific
partition?

I did have a problem not too long ago where my /db array did not  
mount

and MySQL managed to recreate the default/sample database on /db/
mysql, could this default database be somewhere else on / while the /
db array problem was fixed?

*scratches head*




It is possible that you have mounted a filesystem onto a non empty  
directory.
The stuff in the dir used as a mount point will be hidden by the  
mount.


Colin



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


rmuser failed / cannot readd user

2008-04-29 Thread Hartleigh Burton

Hi readers!

I am having problems with adding/removing user accounts. This seems to  
be related to a problem I was having yesterday (Subject: a monster  
stole my /), adding a user when / was at 108% capacity.


I added a user called mrawebuser, which failed because there was not  
enough free space on / at the time. Now when I try to add the user  
again it says the user already exists when it doesn't. I have used  
rmuser to remove the account and also manually check /etc/passwd, /etc/ 
master.passwd,  /etc/group - none of these files contain any  
reference to mrawebuser. If I repeat the rmuser command it will find  
the user every time.


Basically I would like to start fresh, completely remove this user and  
any reference to the account then recreate it.





intranet# adduser -v
Username: mrawebuser
Full name: MRA Web User
Uid (Leave empty for default):
Login group [mrawebuser]:
Login group is mrawebuser. Invite mrawebuser into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]:
Home directory [/home/mrawebuser]:
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username   : mrawebuser
Password   : *
Full Name  : MRA Web User
Uid: 1005
Class  :
Groups : mrawebuser
Home   : /home/mrawebuser
Shell  : /bin/sh
Locked : no
OK? (yes/no): y
pw: login name `mrawebuser' already exists
adduser: ERROR: There was an error adding user (mrawebuser).
Add another user? (yes/no): n
Goodbye!




intranet# rmuser -v mrawebuser
Matching password entry:

mrawebuser:*:1004:1005::0:0:MRA Web User:/home/mrawebuser:/bin/sh

Is this the entry you wish to remove? y
Remove user's home directory (/home/mrawebuser)? n
Removing crontab for (mrawebuser):.
Removing at(1) jobs owned by (mrawebuser): 0 removed.
Removing IPC mechanisms.
Terminating all processes owned by (mrawebuser): -KILL signal sent to  
0 processes.

Removing files owned by (mrawebuser) in /tmp: 0 removed.
Removing files owned by (mrawebuser) in /var/tmp: 0 removed.
Removing mail spool(s) for (mrawebuser):.
Removing user (mrawebuser) from the system:pw: user 'mrawebuser' does  
not exist: No such file or directory

 Done.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


a monster stole my /

2008-04-28 Thread Hartleigh Burton

Hiya!

I have a problem with / currently being at 108% capacity. I have found  
a previous thread in the archives which explains a few questions but I  
can't find what is taking up all the additional space. At best without  
destroying what I still do not understand I can manage to get / to  
about 101% capacity.


To answer a couple of potential questions straight up, there is  
nothing in /root and /tmp is on a separate partition.


intranet# df -h
Filesystem   SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a  989M986M-76M   108%/
devfs1.0K1.0K  0B   100%/dev
/dev/da0s1e  989M216K910M 0%/tmp
/dev/da0s1f   58G4.8G 48G 9%/usr
/dev/da0s1d  4.8G2.2G2.3G49%/var
/dev/da1p1   3.3T682G2.4T22%/db
devfs1.0K1.0K  0B   100%/var/named/dev

intranet# du -h -d1
2.0K./.snap
1.5K./dev
218K./tmp
4.8G./usr
2.2G./var
1.7M./etc
2.0K./cdrom
2.0K./dist
1.1M./bin
 71M./boot
4.4M./lib
360K./libexec
2.0K./media
512B./net
2.0K./proc
3.8M./rescue
 26K./root
4.1M./sbin
512B./host
682G./db
689G.



If I move the old kernel/GENERIC files from /boot I can manage to get  
back to 101%, I really have no idea where the rest of the space has  
gone though. Is there any way to locate large files on a specific  
partition?


I did have a problem not too long ago where my /db array did not mount  
and MySQL managed to recreate the default/sample database on /db/ 
mysql, could this default database be somewhere else on / while the / 
db array problem was fixed?


*scratches head*





Hartz.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Large Volumes - 2.2TB missing... expecting 3.4TB!

2007-08-06 Thread Hartleigh Burton

Thanks for the tip.

# /dev/da1s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  c: 30291304010unused0 0 # raw  
part, don't edit

  d: 302913040104.2BSD 2048 16384 28528

Unfortunately for me, I do not really know what I am looking at here.




Regards,
Hartleigh Burton


On 06/08/2007, at 4:07 PM, [EMAIL PROTECTED] wrote:


On 06/08/07, Hartleigh Burton [EMAIL PROTECTED] wrote:

OK, in the FDISK Partition Editor da1 reads as 3576219MB. So that
looks to be ok and around what I am expecting.

In the Disklabel Editor da1s1 has 0MB free, and da1s1d is the only
da1s1 label with a size of 1444GB.



The output of
% bsdlabel da1s1
might be very enlightening here.

As an aside, you might spend some time learning the
command line utilities.
% man 8 fdisk
% man 8 bsdlabel

--
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Large Volumes - 2.2TB missing... expecting 3.4TB!

2007-08-05 Thread Hartleigh Burton

Hi Everyone,

I have installed FreeBSD 6.2-RELEASE amd64 on a new boxen... and just  
realized that I am missing just a 'little' bit of storage space ;)


The raid array is as follows:

3ware 9650SE-8LPML Controller
1 x 76GB OS RAID 1 Array (2 x 80GB drives)
1 x 3.4TB DATA RAID 5 Array (6 x 700GB drives)

In order for FreeBSD to even see the controller, I had to download  
the 3rd party drivers from the 3ware site and follow their  
instructions. The installation went very smoothly, I could clearly  
see the 1 x 76GB array  the 3.4TB array, which I successfully  
partitioned and labeled in the FreeBSD setup. I was required to  
recompile the kernel post installation so that FreeBSD would continue  
to see the array. There seemed to be no issues during any of the  
installation/post installation compile.


However now it appears that I am missing a fair bit of space... or it  
is not reading correctly, I don't know exactly. This is the first  
time I have worked with volumes this large, certainly in FreeBSD.


Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a496M 62M394M14%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da1s1d1.4T 42G1.2T 3%/db
/dev/da0s1e496M 16K456M 0%/tmp
/dev/da0s1f 59G1.8G 52G 3%/usr
/dev/da0s1d4.8G115M4.3G 3%/var
devfs  1.0K1.0K  0B   100%/var/named/dev

Filesystem  1K-blocks  Used  Avail Capacity  Mounted on
/dev/da0s1a 50763063730 40329014%/
devfs11  0   100%/dev
/dev/da1s1d 1466903074 43775300 1305775530 3%/db
/dev/da0s1e 507630   16 467004 0%/tmp
/dev/da0s1f   61443272  1846112   54681700 3%/usr
/dev/da0s1d5060654   1172824538520 3%/var
devfs11  0   100%/var/named/dev

As you can see /db is reading as 1.2T, whereas during the  
installation partition/label process this was at ~ 3.4T, which is  
what I am expecting. If anyone could provide some input as to where  
the rest has gone that would be greatly appreciated!




Regards,
Hartleigh Burton.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Large Volumes - 2.2TB missing... expecting 3.4TB!

2007-08-05 Thread Hartleigh Burton
OK, in the FDISK Partition Editor da1 reads as 3576219MB. So that  
looks to be ok and around what I am expecting.


In the Disklabel Editor da1s1 has 0MB free, and da1s1d is the only  
da1s1 label with a size of 1444GB.





Regards,
Hartleigh Burton


On 06/08/2007, at 3:28 PM, Philip M. Gollucci wrote:


sudo sysinstall -- does it still read as 3.4 TB ? aka a df bug ?
not likely


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD vs mysql50-server [SOLVED]

2007-08-02 Thread Hartleigh Burton

Thanks for the replies guys.

Turns out that the my.cnf file needed to be in either /db/mysql/ 
my.cnf (where i am pointing the datadir to) OR /usr/local/etc/my.cnf.  
I hit a problem when I moved it to either folder though because some  
of the variables for mysql were out and the default socket/pid-file  
directory was not created.


* mkdir /var/run/mysqld and change owner to mysql (for socket  pid- 
file)
* change my.cnf language variable to /usr/local/share/mysql/english  
(was previously /usr/share/mysql/english and causing mysql to fail to  
start)
* mkdir /etc/mysql/conf.d for additional settings, either that or  
comment out !includedir line in the my.cnf file, I decided to mkdir  
for fun times


So there we go... only took a few days but nailed it ;) thanks to  
everyone who provided feedback... i hope this helps others out in the  
future.




Regards,
Hartleigh Burton
Resident Geek.


On 02/08/2007, at 2:54 PM, Duane Hill wrote:


On Thu, 2 Aug 2007 at 00:45 -0400, [EMAIL PROTECTED] confabulated:


On Thu, Aug 02, 2007 at 02:04:45PM +1000, Hartleigh Burton wrote:

Hi Guys,

I have installed MySQL 5.0.45 server on a new FreeBSD 6.2 boxen, and
having some problems restoring a 10GB database backup to the new
server. The error I receive is max_allowed_packet too large. When I
change the value for max_allowed_packet and set it to 100M, or 500M,
or 1G, or 1000M, or 8589934592 (bits), it does not appear to be
changing the value in MySQL.

I only have one configuration file located in /etc/mysql/my.cnf  
which

is where I am setting the max_allowed_packet value.

After altering this value, I restart MySQL (or even the entire
server) and then log into mysql and do a show variables; command.
The max_allowed_packet variable is ALWAYS set to 1048576 (1M), and
has not changed no matter what I try.

Is the my.cnf file in the right location (/etc/mysql/)???


No, that is not the default location.  I think it uses
/var/db/mysql/my.cnf by default.


My config file is located at /etc/my.cnf and it works fine.

---
  _|_
 (_| |
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD vs mysql50-server

2007-08-01 Thread Hartleigh Burton

Hi Guys,

I have installed MySQL 5.0.45 server on a new FreeBSD 6.2 boxen, and  
having some problems restoring a 10GB database backup to the new  
server. The error I receive is max_allowed_packet too large. When I  
change the value for max_allowed_packet and set it to 100M, or 500M,  
or 1G, or 1000M, or 8589934592 (bits), it does not appear to be  
changing the value in MySQL.


I only have one configuration file located in /etc/mysql/my.cnf which  
is where I am setting the max_allowed_packet value.


After altering this value, I restart MySQL (or even the entire  
server) and then log into mysql and do a show variables; command.  
The max_allowed_packet variable is ALWAYS set to 1048576 (1M), and  
has not changed no matter what I try.


Is the my.cnf file in the right location (/etc/mysql/)??? How can I  
check where MySQL is reading the configuration from if there is a  
possibility it is not coming from this location???


Not sure if this additional information is of any use, in the rc.conf  
file I have changed the database directory by using mysql_dbdir=/db/ 
mysql.


Any help is greatly appreciated.




Regards,
Hartleigh Burton
Resident Geek

MRA Entertainment Pty Ltd
5 Dividend St | Mansfield | QLD 4122 | Australia
Phone: (07) 3457 5041
Fax: (07) 3349 8806
Mobile: 0421 646 978

www.mraentertainment.com



Internal Virus Database was built: Never
Checked by MAC OSX... we don't get viruses!


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


proftpd vs PAM authentication

2007-07-16 Thread Hartleigh Burton

Hi everyone,

I am relatively new to FreeBSD and have what I hope is a simple  
question regarding proftpd and PAM authentication.


I have just installed proftpd via the available port, and after  
installation a message was returned saying:


###
Make sure you have the following lines in your PAM configuration file
so that ProFTPd's PAM module can authenticate users correctly.

ftpd authrequiredpam_unix.so try_first_pass
ftpd account requiredpam_unix.so try_first_pass
ftpd session requiredpam_permit.so
###

After reading into this I am confused as to where exactly I should be  
entering this information. According to the proftpd README file, in  
FreeBSD it likes to get this information from /etc/pam.conf, whereas  
LINUX looks in /etc/pam.d/ftp, and what topped it off for me is the / 
etc/pam.d/ftpd file.


Where is the best place to have this configuration information; is it  
required considering there is already lines in /etc/pam.d/ftp; if  
required should I overwrite /etc/pam.d/ftp or append to the beginning/ 
end of the file?


I hope there is enough information here for someone to help. Any help  
provided is greatly appreciated in advance ;)





Regards,
Hartleigh.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: proftpd vs PAM authentication

2007-07-16 Thread Hartleigh Burton

Thanks for the prompt reply Beech.




Regards,
Hartleigh.


On 17/07/2007, at 1:41 PM, Beech Rintoul wrote:


On Monday 16 July 2007, Hartleigh Burton said:

Hi everyone,

I am relatively new to FreeBSD and have what I hope is a simple
question regarding proftpd and PAM authentication.

I have just installed proftpd via the available port, and after
installation a message was returned saying:

###
Make sure you have the following lines in your PAM configuration
file so that ProFTPd's PAM module can authenticate users correctly.

ftpd authrequiredpam_unix.so try_first_pass
ftpd account requiredpam_unix.so try_first_pass
ftpd session requiredpam_permit.so
###

After reading into this I am confused as to where exactly I should
be entering this information. According to the proftpd README file,
in FreeBSD it likes to get this information from /etc/pam.conf,
whereas LINUX looks in /etc/pam.d/ftp, and what topped it off for
me is the / etc/pam.d/ftpd file.

Where is the best place to have this configuration information; is
it required considering there is already lines in /etc/pam.d/ftp;
if required should I overwrite /etc/pam.d/ftp or append to the
beginning/ end of the file?

I hope there is enough information here for someone to help. Any
help provided is greatly appreciated in advance ;)



Actually that isn't required anymore and is a holdover from earlier
versions. The pam configuration for ftpd is in /etc/pam.d/ftpd and
already contains the required entries. I should probably just remove
it to avoid confusion.

Beech - Proftpd Maintainer

--  
-- 
-

Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://www.freebsd.org
 X  - NO Word docs in e-mail | Latest Release:
/ \  - http://www.FreeBSD.org/releases/6.2R/announce.html
-- 
-




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]