Ask a Question related to Linux Setup, Configuration & Administration, Design and Development.
-
vittorio #1
two question about linux
1) using the "rm" command i can delete files and directory
but if i make a mistake, how can i undo the command to have my deleted files
back?
How about the same "undelete" dos command in linux?
2) i installed a little distro on an hold pc.
to install new packages it's necessary to insert the install disk, but with
this i can mount my hda2 partition without limitations because the diskette
use a root user without a password.
This mean that doing the boot from the inst diskette i can execute this
command:
mount /dev/hda2 /mnt -t ext2
and i can view the /root dir as "root" from /mnt/root
how can i forbid the "/" partition to whom is not the administrator of my
pc?
thank you!
vittorio Guest
-
V8 FP3 - Linux / question on missing JDK
Hi there, The linux V8 FP3 fixpack readme tells the JDK 1.3.1 Release 4 needs to be installed, manually, and should be in the FP3 cdrom. Well, I... -
Question on which Linux Binaries to d/l for Linux Redhat 7.0 ?
At ftp://ftp.xfree86.org/pub/XFree86/4.3.0/binaries/ I see Linux-axp-glibc22, Linux-ix86-glibc21, Linux-ix86-glibc22, Linux-ix86-glibc23 Which... -
Linux Backup Question
Can I boot from a bootable linux CD in single user mode and do a restore like ufsrestore in Solaris? -
question re. iTunes library on YD Linux
I've got an old beige G3 that I'm interested in repurposing primarily as a web and e-mail server using Yellow Dog Linux. However, I'd also like to... -
Oracle 9i for Linux Cluster Question
So your question is really 'can I run a RAC without any of the hardware?' To which the obvious answer, not posted to quite as many groups as your... -
Bill Unruh #2
Re: two question about linux
"vittorio" <stortoaranci@libero.it> writes:
]1) using the "rm" command i can delete files and directory
]but if i make a mistake, how can i undo the command to have my deleted files
]back?
]How about the same "undelete" dos command in linux?
It does not exist. You cannot undo the command.
What you could do is to set up a alias, like
function rm () { cp $* /tmp; /bin/rm $* ;}
which will first copy your file to the tmp directory and then remove it.
( a better procedure might simply be to do
function rm () { mv $* /tmp ;}
)
However then there is the danger or completely filling /tmp with your
junk.
]2) i installed a little distro on an hold pc.
]to install new packages it's necessary to insert the install disk, but with
]this i can mount my hda2 partition without limitations because the diskette
]use a root user without a password.
]This mean that doing the boot from the inst diskette i can execute this
]command:
]mount /dev/hda2 /mnt -t ext2
]and i can view the /root dir as "root" from /mnt/root
]how can i forbid the "/" partition to whom is not the administrator of my
]pc?
You cannot. The / partition is crucial for everyone. They must be able
to see it, in order to do anything.
That is not true of /root. However if you allow anyone to put in a
rescue disk, then your machine is open. You could password protect the
booting in the bios with a bios password. But with physical access to
your system, that can also be overcome.
If someone has physical access to your system then that system is open
to them, unless you encrypt your drives.
Bill Unruh Guest
-
Alan Connor #3
Re: two question about linux
On Mon, 15 Sep 2003 20:54:43 GMT, vittorio <stortoaranci@libero.it> wrote:
You can alias rm to rm -i, and then it will prompt you before completion.>
>
> 1) using the "rm" command i can delete files and directory
>
> but if i make a mistake, how can i undo the command to have my deleted files
> back?
> How about the same "undelete" dos command in linux?
>
You can create a "trashbin" where files are sent instead of being deleted.
create a directory called .tb and put this in your .bashrc
tb ()
{
mv "$@" ~/.tb ;
}
then add
alias rm='tb'
and enter
$ source .bashrc
> 2) i installed a little distro on an hold pc.
>
> to install new packages it's necessary to insert the install disk, but with
> this i can mount my hda2 partition without limitations because the diskette
> use a root user without a password.
> This mean that doing the boot from the inst diskette i can execute this
> command:
>
> mount /dev/hda2 /mnt -t ext2
>
> and i can view the /root dir as "root" from /mnt/root
>
> how can i forbid the "/" partition to whom is not the administrator of my
> pc?
>
> thank you!
>
>
Don't know,
AC
--
take control of your mailbox ----- elrav1 ----- [url]http://tinyurl.com/l55a[/url]
spammers hate this program because they can't beat it
Alan Connor Guest
-
Lew Pitcher #4
Re: two question about linux
vittorio wrote:
Restore the file from your last backup.> 1) using the "rm" command i can delete files and directory
>
> but if i make a mistake, how can i undo the command to have my deleted files
> back?
Otherwise, you've just lost the file.
Nope.> How about the same "undelete" dos command in linux?
Don't permit installations based on an install disk boot.> 2) i installed a little distro on an hold pc.
>
> to install new packages it's necessary to insert the install disk, but with
> this i can mount my hda2 partition without limitations because the diskette
> use a root user without a password.
> This mean that doing the boot from the inst diskette i can execute this
> command:
>
> mount /dev/hda2 /mnt -t ext2
>
> and i can view the /root dir as "root" from /mnt/root
>
> how can i forbid the "/" partition to whom is not the administrator of my
> pc?
It's unnecessary, and (as you can see) a security risk.
--
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)
Lew Pitcher Guest
-
Mauriat #5
Re: two question about linux
vittorio wrote:
<snip>> 1) using the "rm" command i can delete files and directory
>
> but if i make a mistake, how can i undo the command to have my deleted files
> back?
> How about the same "undelete" dos command in linux?
>
Has anyone tried this?
'unrm'
[url]http://freshmeat.net/projects/unrm/?topic_id=866[/url]
--
Mauriat
----------------------------
Remove 'NOSPAM' to email me.
Mauriat Guest
-
vittorio #6
Re: two question about linux
>> Don't permit installations based on an install disk boot.
how can i do this?> It's unnecessary, and (as you can see) a security risk.
let me know if there is some mini/how-to about this thank's
vittorio Guest
-
Lew Pitcher #7
Re: two question about linux
vittorio wrote:
Either physically or logically.>>>>>>Don't permit installations based on an install disk boot.
>>It's unnecessary, and (as you can see) a security risk.
>
> how can i do this?
The "logical" approach would be to disable the "boot from floppy" in your BIOS
(perhaps by setting "BOOT ORDER C:,A:")
The "physical" approach would be to disable or remove the floppy disk drive.
In either case, you have to remove the physical capability of someone booting
off a floppy or other unauthorized media.
--
Lew Pitcher
Master Codewright and JOAT-in-training
Registered Linux User #112576 ([url]http://counter.li.org/[/url])
Slackware - Because I know what I'm doing.
Lew Pitcher Guest
-
Nico Kadel-Garcia #8
Re: two question about linux
Lew Pitcher wrote:
Logical can often be beaten by interrupting the reboot to fail 3 times> vittorio wrote:
>>>>>>>> Don't permit installations based on an install disk boot.
>>>
>>>
>>> It's unnecessary, and (as you can see) a security risk.
>>
>>
>> how can i do this?
>
> Either physically or logically.
>
> The "logical" approach would be to disable the "boot from floppy" in
> your BIOS (perhaps by setting "BOOT ORDER C:,A:")
in a row, which on many mothereboards resets the BIOS to its default
values. Its a *nasty* trick, and a good reason to avoid reprogramming
your BIOS to get cutesy behaviors.
Nico Kadel-Garcia Guest



Reply With Quote

