swapon, util-linux 2.9r

swapon, util-linux 2.9r

Post by Allin Cottrel » Tue, 04 May 1999 04:00:00



I just installed the 2.9r utilities and am getting a puzzling
(to me) message from "swapon":

  warning: /dev/hda2 has insecure permissions 0640, 0600 suggested

My question is, how to set permissions for /dev/hda2, when it's
a swap partition that is not mounted?  The relevant fstab line
reads

  /dev/hda2       none    swap    sw

--
Allin Cottrell
Department of Economics
Wake Forest University, NC

 
 
 

swapon, util-linux 2.9r

Post by Spud » Tue, 04 May 1999 04:00:00


    Have you tried `chmod 640 /dev/hda2` ? Even though it is a partition
tagged as swap space, you can still set permissions.

Quote:>I just installed the 2.9r utilities and am getting a puzzling
>(to me) message from "swapon":

>  warning: /dev/hda2 has insecure permissions 0640, 0600 suggested

>My question is, how to set permissions for /dev/hda2, when it's
>a swap partition that is not mounted?  The relevant fstab line
>reads

>  /dev/hda2       none    swap    sw

>--
>Allin Cottrell
>Department of Economics
>Wake Forest University, NC


 
 
 

swapon, util-linux 2.9r

Post by Thomas Zaj » Tue, 04 May 1999 04:00:00



> I just installed the 2.9r utilities and am getting a puzzling
> (to me) message from "swapon":
>   warning: /dev/hda2 has insecure permissions 0640, 0600 suggested
> My question is, how to set permissions for /dev/hda2, when it's
> a swap partition that is not mounted?  The relevant fstab line
> reads
>   /dev/hda2       none    swap    sw

As root: chmod 0600 /dev/hda2. ;-)

Thomas
--
=---        Thomas Zajic aka ZlatkO ThE GoDFatheR, Vienna/Austria        ---=
=--   "It is not easy to cut through a human head with a hacksaw." M.C.   --=
=--   Posted with Free Agent 1.11/32 running on Linux 2.0.36/Wine-990226  --=
=---        Spam-proof e-mail: thomas(DOT)zajic(AT)teleweb(DOT)at        ---=

 
 
 

swapon, util-linux 2.9r

Post by NF Steve » Tue, 04 May 1999 04:00:00



>I just installed the 2.9r utilities and am getting a puzzling
>(to me) message from "swapon":

>  warning: /dev/hda2 has insecure permissions 0640, 0600 suggested

>My question is, how to set permissions for /dev/hda2, when it's
>a swap partition that is not mounted?  The relevant fstab line
>reads

>  /dev/hda2       none    swap    sw

chmod 600 /dev/hda2

(as root, of course)

Norman

 
 
 

swapon, util-linux 2.9r

Post by Allin Cottrel » Tue, 04 May 1999 04:00:00



> chmod 600 /dev/hda2

OK, silly me.  Thanks also to the others who said the same.
Didn't realize you could do that for non-mounted devices.

Allin Cottrell.

 
 
 

swapon, util-linux 2.9r

Post by Peter Samuels » Thu, 06 May 1999 04:00:00



Quote:> OK, silly me.  Thanks also to the others who said the same.  Didn't
> realize you could do that for non-mounted devices.

Mounted or non-mounted doesn't have anything to do with it; nor does
the fact that it's a device file.  Basically you are using `chmod' on a
file in your root filesystem, which *is* mounted.

--
Peter Samuelson
<sampo.creighton.edu!psamuels>