chabral wrote:
> "ANaiveProgrammer" <(E-Mail Removed)> escribió en el mensaje
> news:(E-Mail Removed) om...
[SNIP]
>> ANOTHER QUESTION IS how can i make ordinary user as powerful as root
>> on my redhat?
>> LAST QUESTION IS i have dualed boot red hat 8 and windows XP, now i
>> want to save some files from my linux to XP? howz that possible
>> im really stumped so please help
[SNIP]
!dangerous!
> 2. to give root privileges to a user, [add] the user to the root group.
> In /etc/group add your user next to the line beginning with root:x:0:root
!dangerous!
The above is a neat idea, but there are many more standard and slightly
safer solutions:
If you want to execute a program as root but from a user account regularly,
the normal way to do that is to use the setuid bit. As root, find the
location of the executable, for example, by running "which tethereal", then
do the following:
chmod u+s <path-to-file>
Note however, that if the file is a script, you might need to create an
executable wrapper, which you would then setuid root.
Other methods that are typical of linux are using su -c and sudo. You can
look up info using "man su" and "man sudo".
Presumably you want to be able to run [t]ethereal without being root, and
your difficulty is that it requires CAP_NET_RAW, which is normally only
granted to root, is that so? Then, you can use the capability kernel
module at
http://lwn.net/Articles/80239/
Instead of granting root privilege to the program at all.
If you mean to give a normal user root-like privileges on a normal basis,
without any well-defined restriction, you should really, really think hard
about doing so. Even setuid programs are considered slightly dangerous, if
sometimes necessary. Post on comp.os.linux.security, and ask about it if
you want.
> 3. you need to mount your winxp partition first in order to use it.
> Suppose your hard disk is /dev/hda, the type "fdisk /dev/hda -l" and check
> for the partition name of the partition with FAT 32 filesystem, suppose
> it's hda3. Create a directory like /mnt/windows and mount the partition
> with: "mount /dev/hda3 /mnt/windows". If you get an error you may need to
> include support in your kernel for the filesystem used by windows (eg: Fat
> 32, NTfs, so on).
May you be using a FAT-based system, or you might have some difficulty,
because NTFS write support has been problematic. You might also need to
specify a -t option to mount:
mount -t auto /dev/hda3 /mnt/windows
Or
mount -t vfat ... [e.g., for win95 style partition]
mount -t ntfs ... [e.g., usu. for xp]
Once you have figured out how to mount it, you can edit your /etc/fstab file
so that the process is automated. To find out more, do "man fstab".
Good luck,
Jon.
-- * Does the walker choose the path, or does the path choose the walker?
(fr. Sabriel) * --