Re: newbie question



Hello,

First of all the rpm -e would be the best solution. But for the rest of your question:

To become owner you'll have to log in as root. You can do that by typing:
$su
This stands for Super User. You'll have to provide the root password. When you are logged in as root the "command line" will start with
#
in stead of
$

Now you can change owner with the command
#chown user:group filename
or
#chown -R user:group directory

If you want to change owner to root you type something like
#chown -R root:root j2re.xxx

To change access rights use:
#chmod 777 filename
COUNTION: 777 means all rights to all users. You can change access rights by using other numbers or check out the web for chmod.

grtx,

TWW / MNX

Jan Gerrit Kootstra wrote:
TomF wrote:
i managed to install Redhat 9 and it is working great.
the problem is a failed install of Sun Java.
trying to reinstall tells me it is already there.
how do i uninstall it to try to reinstall?
if i go to the folder, it says i am not the owner.
how do i become the owner?
i am the only one on the system

ty


TomF,


What did you use to install it?

to become the owner you need to become root (like windows Administrator)

give the following command in a terminal window:

su -

following command will make user:group the owning user and group (-R means recursive):

chown -R user:group directoryname

The chown might not be necessary to remove the SUN Java stuf, ones you change to the root user.

Warning: If you used rpm to install SUN Java, a simple delete of the directory will not help you.

rpm -e jre

might work.


Kind regards,


Jan Gerrit
.



Relevant Pages

  • Re: chown SUPPORT_DOT broke in 4.9-REL
    ... if the owner of the file tries to add a different group, ... I tested and the chown owner:group works only if ... the owner is a member of the group of which they are a member. ... root or as the owner and used the chown for a group in which the ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Who sets /dev/snd/* owners/perms upon login?
    ... change - they're permanently at 0660, owner root:root - and yet I can play sound from a ssh session as a common user. ... User gabi then becomes able to play sound with aplay, but ONLY from that console; if I log in as gabi from ssh -- even while the same user is logged in from the console -- gabi at ssh can't play and gabi at console can!!! ... # owner: root ...
    (Fedora)
  • Change Permissions on a new hard drive to allow write...Problem Solved
    ... Then I right clicked on the drive, selected "Properties" then "Permissions" and simply checked the boxes for "write" for Owner, Group, and Others. ... I really don't understand why so many people think that logging in as root when needed is such a bad thing, although I can certainly see a better way to accomplish what I needed to do. ... See my other post "Vote for new Ubuntu Feature---Let's try it again". ...
    (Ubuntu)
  • Re: Migrating from Windows to Debian - keeping email messages from Outlook Express
    ... As I was operating as root when copying the backed data from the ... > all that data is root, the group is also root and the permissions are ... I need to change the owner of all these files (and ... # chown -R user:group /dir ...
    (Debian-User)
  • Re: Unrestrict chown?
    ... On my debian box using linux kernel its not possible to give away files, ... only root can change file owners. ... the file, check the owner with fstat, then change the owner with ... (including handling the case where chown ...
    (Debian-User)