Harald Schmalzbauer wrote: > Hello, > > accidentally I did 'bsdlabel -w ar0s2' as unprivileged user but it was > successfull.
Likely you have a permissions problems. Report result of cd /dev ; ls -l . ar0s2 ad0s2 /sbin/bsdlabel On my 6.2-RELEASE for example I have an unwriteable combo of: dr-xr-xr-x 5 root wheel 512 Jan 1 1970 ./ crw-r----- 1 root operator 0, 110 Jun 21 09:03 ad0s2 crw-r----- 1 root operator 0, 123 Jun 21 11:03 ad0s2a -r-xr-xr-x 2 root wheel 233768 Apr 11 19:43 /sbin/bsdlabel* Either: - You made a typo with ar0s2 & meant ad0s2, - Or you really mean "ar" - man 4 ar reports a comms card ! - /dev/ar0s2 may be some meaningless normal file, not a device, but in /dev/ , writeable by you, from a previous mistake you made as root ? > Is this only possible because there was no mounted filesystem on it? No. Regardless what the code of bsdlabel.c might try, if it doesnt have SUID or SGID bits & isnt run as root, kernel won't allow it to write what it doesnt have permission for. > But I can imagine having data on unmounted filesystems. Possible yes but see above. > Is it intended that regular useres can overwrite the label? No. > That's a big fault in my opinion. No such fault to fear :-) BTW all above is general Unix philospohy, applies equally to Linux, *BSD & commercial Unixes, ref. any book on Unix permissions etc :-) > Best regards, > > -Harry Julian -- Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com HTML mail unseen. Ihr Rauch=mein allergischer Kopfschmerz. Dump cigs 4 snuff. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"