Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to open, chown tgz file

Status
Not open for further replies.

sonun

IS-IT--Management
Dec 26, 2001
384
US
when I try to as root do,
# gunzip < mysql-3.23.49.tar.gz | tar xvf -
mysql-3.23.49/
tar: mysql-3.23.49/: Cannot mkdir: Permission denied
mysql-3.23.49/Makefile.in
tar: mysql-3.23.49/Makefile.in: Cannot open: No such file or directory
mysql-3.23.49/README
tar: mysql-3.23.49/README: Cannot open: No such file or directory
mysql-3.23.49/stamp-h.in
tar: mysql-3.23.49/stamp-h.in: Cannot open: No such file or directory
mysql-3.23.49/Makefile.am
tar: mysql-3.23.49/Makefile.am: Cannot open: No such file or directory
mysql-3.23.49/acconfig.h
tar: mysql-3.23.49/acconfig.h: Cannot open: No such file or directory
mysql-3.23.49/acinclude.m4
tar: mysql-3.23.49/acinclude.m4: Cannot open: No such file or directory
mysql-3.23.49/aclocal.m4

The file however is owned by someone else. But even it doesnt even let me chown the file to root as root. I can extract the tgz file as the user though. But I thought since it was a install I should do it as root. Now that we have come so far anybody know what decided whats to be installed as root and as normal user.

Thanks.
 
Hi,





Try just doing the simple one-liner :





# tar zxvf mysql-3.23.49.tar.gz





(the z filters via gunzip)





Regards
 
you could always su to be the user then chown it? The who owns the install directory?
 
For,
# tar zxvf mysql-3.23.49-pc-linux-gnu-i686.tar.gz, I get
mysql-3.23.49-pc-linux-gnu-i686/
mysql-3.23.49-pc-linux-gnu-i686/include/
mysql-3.23.49-pc-linux-gnu-i686/include/my_no_pthread.h
tar: mysql-3.23.49-pc-linux-gnu-i686/include/my_no_pthread.h: Cannot change ownership to uid 202, gid 1004: Operation not permitted
mysql-3.23.49-pc-linux-gnu-i686/include/config.h
tar: mysql-3.23.49-pc-linux-gnu-i686/include/config.h: Cannot change ownership to uid 202, gid 1004: Operation not permitted
mysql-3.23.49-pc-linux-gnu-i686/include/mysys_err.h
tar: mysql-3.23.49-pc-linux-gnu-i686/include/mysys_err.h: Cannot change ownership to uid 202, gid 1004: Operation not permitted

I did su and then tried to chown it. But even then it wasnt good enough.
 
Yeah, I guess I will stick with the RPM's as when I tried to #chattr -i -R *, I get,
Inappropriate ioctl for device while reading flags on tests/table_types.pl
chattr: Inappropriate ioctl for device while reading flags on tests/udf_test
chattr: Inappropriate ioctl for device while reading flags on tests/udf_test.res
Btw if I use RPM's which of the followin steps do I skip ??
The mysql link you kindly provided says if I use source files then I ,

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> scripts/mysql_install_db
shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/var
shell> chgrp -R mysql /usr/local/mysql
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> /usr/local/mysql/bin/safe_mysqld --user=mysql &
or
shell> /usr/local/mysql/bin/mysqld_safe --user=mysql &
if you are running MySQL 4.x.

If I use RPMS, then I,
shell> rpm --rebuild MySQL-VERSION.src.rpm

Thanks a bunch.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top