| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | This is why FreeBSD... |
-=> Angus Mcleod Scribbled to All <=-
AM> {at}MSGID:
AM> ...will always be a bullshit operating system:
AM> $ echo "Hello world" > hello.text
AM> $ ls -l hello.txt
AM> -rw-r--r-- 1 amcleod anjo 6 Aug 13 15:27 hello.text
AM> chown freddy hello.text
AM> chown: hello.text: Operation not permitted
AM> $ man chown
AM> CHOWN(8) FreeBSD System Manager's Manual
AM> CHOWN(8)
AM> NAME
AM> chown - change file owner and group
AM> . . .
AM> The ownership of a file may only be altered by a super-user for
AM> obvious
AM> security reasons.
AM> What rubbish! So the OWNER of the file is not allowed to give it to
AM> someone else? WTF is write permissions for if not to decide who can
AM> modify the file, such as changing ownership?
I'm hoping you didn't cut and paste all of the above...
AM> $ echo "Hello world" > hello.text
AM> $ ls -l hello.txt
AM> -rw-r--r-- 1 amcleod anjo 6 Aug 13 15:27 hello.text
AM> chown freddy hello.text
AM> chown: hello.text: Operation not permitted
AM> $ man chown
Trying to figure out how it found the hello.txt when you "Created"
hello.text. But your ls -l hello.txt would be hard to find unless you
renamed the hello.text to hello.txt, or it was already there when you
started. :)
So, which is it? :)
Ah, no, that won't work because of the security risks it would create.
The ability to overwrite system files... etc... Humm... lemme chown
this new passwd file to root, then I can copy it over the passwd file in
/etc. No... I don't think I'd like that capability.
Do like everyone else... if you want to give the file to someone, then
su to root, ftp or e-mail it. :) By the way, you can't do it in Linux
either, unless you've given yourself SuperUser rights... * Origin: Joe's Computer & BBS -=joesbbs.com=- (1:275/312)SEEN-BY: 633/267 270 @PATH: 275/312 396/45 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.