DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd December 2016
anthonyc anthonyc is offline
New User
 
Join Date: Dec 2016
Posts: 8
Question chflags issue

Hi,

I'am trying some protection on files with chflags but i have issues.

As root user:
Code:
> touch /etc/file1
> chflags sappnd /etc/file1
> echo test >/etc/file1
chflags: /etc/file1: Operation not permitted
> chflags nosappnd /etc/file1
chflags: /etc/file1: Operation not permitted
root user cannot write to the file with append-only flag and it cannot remove the flag

What's wrong ?

Thanks.

Last edited by anthonyc; 24th December 2016 at 02:31 PM.
Reply With Quote
  #2   (View Single Post)  
Old 23rd December 2016
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Quote:
Originally Posted by anthonyc View Post
What's wrong ?
Everything is alright.

You must restart your operating system to security level 0 if you want to remove sappnd flag.

You probably can append to file. Use >> instead of >.

See chflags(1) and securelevel(7) manpages.
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase

Last edited by e1-531g; 23rd December 2016 at 08:07 PM. Reason: added manpages
Reply With Quote
  #3   (View Single Post)  
Old 23rd December 2016
anthonyc anthonyc is offline
New User
 
Join Date: Dec 2016
Posts: 8
Default

Thanks !

I use chattr on Linux that do not need a restart to remove flags

OpenBSD is really a more secure OS.
Reply With Quote
  #4   (View Single Post)  
Old 23rd December 2016
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Quote:
Originally Posted by anthonyc View Post
Thanks !

I use chattr on Linux that do not need a restart to remove flags

OpenBSD is really a more secure OS.
Yes, Linux's chattr is slightly different than OpenBSD's chflags.
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
Reply

Tags
chflags


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xen 45 issue philo_neo71 NetBSD General 1 9th November 2015 11:05 AM
FTP issue? desreguard OpenBSD General 14 29th August 2011 04:21 PM
VPN Nat issue on 4.8 copetts OpenBSD Security 2 12th April 2011 10:34 AM
Possible SMP Issue? MetalHead OpenBSD General 1 25th November 2008 03:52 AM
RAM issue nikkon FreeBSD General 5 7th May 2008 04:26 AM


All times are GMT. The time now is 07:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick