RE: [CentOS] restore

2008-07-29 Thread Marc-Andre Levesque
>> - The control files has been transfered from AIX5.3 to a Linux Machine !!
>
>This is an Oracle issue and not a CentOS issue.
>
>Please note that, typically, Oracle binary files are not portable between
>hardware and OS platforms.  When I used to DBA Oracle (Oracle 8; that
>long ago) we were told by Oracle that files were not portable (eg between
>HPUX and Solaris, or Solaris and Linux).

This definitely belongs to an Oracle mailing list. However, please look at 
possible issues between Big/Little Endian architectures. I've seen this when 
moving between different archs.

MAL

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] need content of /etc/redhat-release

2008-07-24 Thread Marc-Andre Levesque
>Thanks.
>
>what I need is "original REDHAT version" /etc/redhat-release not CENTOS


I don't think 32/64 bit is going to affect this line.

Red Hat Enterprise Linux ES release 4 (Nahant Update 6)

I don't have a RHEL 5.2 at hand right now to give you the other.

Marc-Andre
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] How to detect whether running on VMware?

2008-07-24 Thread Marc-Andre Levesque


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Mountifield
>Does anyone know how a program, script or shell user can best determine
>whether the machine is running on bare metal or is a VMware guest?
>
>Cheers
>Tony

This script does the trick for me on ESX 3 by looking at the (virtual) hardware 
description. But it probably is not foolproof.

if ( `/sbin/lspci | grep -qi vmware` ) || \
   ( `grep -qi vmware /proc/scsi/scsi` ); then
echo "This is a Virtual Machine."
Fi

Marc-Andre
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] sudoers

2008-07-09 Thread Marc-Andre Levesque
Sorry for this accidental reply. But I might as well take this opportunity to 
add to the thread.

First, look at the unneeded closing parenthesis in the CMD_CIFS alias.
Second, have you tried 'sudo -l' as nobody to see the available list of 
commands that this user is entitled to run with sudo?

MAL


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre 
Levesque
Sent: July 9, 2008 11:54
To: 'CentOS mailing list'
Subject: RE: [CentOS] sudoers




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tharun Kumar Allu
Sent: July 9, 2008 11:36
To: CentOS mailing list
Subject: Re: [CentOS] sudoers


On Wed, Jul 9, 2008 at 10:52 AM, Mário Gamito <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:
Yes, I do.

On Wed, Jul 9, 2008 at 3:24 PM, Tharun Kumar Allu <[EMAIL 
PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
>
>
> On Wed, Jul 9, 2008 at 9:19 AM, Mário Gamito <[EMAIL PROTECTED]<mailto:[EMAIL 
> PROTECTED]>> wrote:
>>
>> Hi,
>>
>> I need to run /bin/mount and /sbin/mount.cifs commands as nobody user
>> (it has (bin/bash shell).
>>
>> So, I've edited /etc/sudoers and added:
>>
>> Cmnd_AliasCMD_MOUNT = /bin/mount
>> Cmnd_AliasCMD_CIFS ) = /sbin/mount.cifs
>>
>> nobody   ALL = NOPASSWD: CMD_MOUNT
>> nobody   ALL = NOPASSWD: CMD_CIFS
>>
>> But when I run the command as nobody (in the shell), I get the error:
>> "mount error 1 = Operation not permitted"
>>
>> Any ideas ?
>>
>> Any help would be appreciated.
>>
>> Warm Regards,
>> Mário Gamito
>>
>
> May be it is a stupid question but did you execute the command with sudo in
> logged in as user nobody
>
> [EMAIL PROTECTED] sudo /bin/mount[.cifs]
>


Another stupid question are you editing /etc/sudoers using visudo? normally 
located at /usr/sbin/visudo

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] sudoers

2008-07-09 Thread Marc-Andre Levesque



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tharun Kumar Allu
Sent: July 9, 2008 11:36
To: CentOS mailing list
Subject: Re: [CentOS] sudoers


On Wed, Jul 9, 2008 at 10:52 AM, Mário Gamito <[EMAIL PROTECTED]> wrote:
Yes, I do.

On Wed, Jul 9, 2008 at 3:24 PM, Tharun Kumar Allu <[EMAIL 
PROTECTED]> wrote:
>
>
> On Wed, Jul 9, 2008 at 9:19 AM, Mário Gamito <[EMAIL PROTECTED] PROTECTED]>> wrote:
>>
>> Hi,
>>
>> I need to run /bin/mount and /sbin/mount.cifs commands as nobody user
>> (it has (bin/bash shell).
>>
>> So, I've edited /etc/sudoers and added:
>>
>> Cmnd_AliasCMD_MOUNT = /bin/mount
>> Cmnd_AliasCMD_CIFS ) = /sbin/mount.cifs
>>
>> nobody   ALL = NOPASSWD: CMD_MOUNT
>> nobody   ALL = NOPASSWD: CMD_CIFS
>>
>> But when I run the command as nobody (in the shell), I get the error:
>> "mount error 1 = Operation not permitted"
>>
>> Any ideas ?
>>
>> Any help would be appreciated.
>>
>> Warm Regards,
>> Mário Gamito
>>
>
> May be it is a stupid question but did you execute the command with sudo in
> logged in as user nobody
>
> [EMAIL PROTECTED] sudo /bin/mount[.cifs]
>


Another stupid question are you editing /etc/sudoers using visudo? normally 
located at /usr/sbin/visudo

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Kickstart network settings problem

2008-04-22 Thread Marc-Andre Levesque
By looking at what is described in the documentation from upstream, I do not 
believe this is possible.

First, network is an optional directive in the kickstart file. Moreover, it 
defaults to dynamic IP address (bootp or dhcp) over the eth0 device. If you 
wish to configure static IP, the documentation says that you have to provide 
all the required networking information in the kickstart file. So I believe you 
would have to fill in the whole kickstart line with its bootproto, ip, netmask, 
gateway, and nameserver values.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Plant, Dean
Sent: April 22, 2008 10:29
To: CentOS mailing list
Subject: RE: [CentOS] Kickstart network settings problem

James Pearson wrote:
> Plant, Dean wrote:
>> I would like one of my kickstart scripts to prompt for disk and
>> networking only. Commenting out the disk and network settings makes
>> the installer prompt for disk settings but not for network settings,
>> they default to DHCP. Any idea's how to fix this?
>
> I think you need to have the network settings defined - something
> like:
>
> network --bootproto static
>
> If you don't give it an IP address (with the --ip option), then it
> will prompt for it. This is what I do for NFS installs - as my
> netmask, gateway and nameserver addresses are static, I also give
> these on the network line.
>

Does not work, still defaults to DHCP with no prompt. Also if it makes
any difference im using v5.1.

I have tried with the 2 network lines shown below in the kickstart file,
with and without interactive variable. Still no network configuration
screen. :-(


Below is my test kickstart.

#platform=x86, AMD64, or Intel EM64T

# System authorization information
authconfig --enableshadow --enablemd5

# System bootloader configuration
bootloader --location=mbr --md5pass=apssword

# Reboot after installation
reboot

# Interactive
interactive

# Use graphical install
graphical

# Firewall configuration
firewall --disabled

# Run the Setup Agent on first boot
firstboot --disable

# System keyboard
keyboard uk

# Network settings

#network --bootproto=static --device=eth0 --gateway=192.168.10.1
--nameserver=192.168.10.1 --netmask=255.255.255.0 --onboot=on
network --bootproto=static

# System language
lang en_GB

# Installation logging level
# Use this to debug
logging --host=alogmachine.domain.co.uk --level=info

# Use network installation
url --url=http://amachine.domain.co.uk/5/en/os/i386/

# Root password
rootpw --iscrypted apassword

# SELinux configuration
selinux --disabled

# System timezone
timezone --isUtc Europe/London

# Install OS instead of upgrade
install

# XWindows configuration information
xconfig --depth=16 --resolution=1280x1024 --defaultdesktop=GNOME
--startxonboot
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Good version control package?

2008-03-13 Thread Marc-Andre Levesque
>From what I recall, I believe CVS attempts to create the checked out file 
>under /tmp so that might be where you are lacking space.

MAL

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Carolan
Sent: March 13, 2008 15:50
To: CentOS mailing list
Subject: Re: [CentOS] Good version control package?

I have run into a snag with my CVS installation:

[EMAIL PROTECTED]:~]$ cvs co -P installfiles
cvs checkout: Updating installfiles
cvs [checkout aborted]: out of memory; can not allocate 1022462837 bytes

Unfortunately we have a couple of large binary .tgz files in the
repository.  I was able to check them in but as you can see I can't
check them out because of memory limitations.   I have even added 2
more gigs of swap space but it still errors out.  I noticed while
watching it that it doesn't seem to use all the swap space.  Any
pointers?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] root vs. user login

2008-03-10 Thread Marc-Andre Levesque
The profile file mentioned below is going to set the PS1 environment variable. 
For more information, you might want to look at the bash man page in the 
PROMPTING section.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Cox
Sent: March 10, 2008 14:17
To: CentOS mailing list
Subject: Re: [CentOS] root vs. user login

On Mon, 10 Mar 2008 11:07:48 -0700 (PDT)
Hiep Nguyen <[EMAIL PROTECTED]> wrote:

> what do i need to change for user profile or during user creation
> process to make it looks like:

That's normally set through .bashrc as contained in /etc/skel so it's inherited
by all new users when they are created.  For existing users, you can just
copy /etc/skel/.bashrc to their home directory.

--
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos