Discussion:
[SunHELP] why cant I add extra swap file ?
TAG DBA
2001-07-04 11:20:48 UTC
Permalink
Hello Everybody,
I was trying to add a swap file to my Sun E450 - but faced some problem.
Note that I am doing this as a user (not as root)

$ pwd
/home1
$ mkfile 1024m /home1/tempfile
$ chmod o+t /home1/tempfile
$ swap -a /home1/tempfile
"/home1/tempfile" is not valid for swapping.
It must be a block device or a regular file with the
"save user text on execution" bit set.

I even did chmod 7777 tempfile and tried again - same response.
Cant figure out what I am missing here. The man for mkfile command does say that
non-root users can use this command - all they need to do is turn on the sticky bit.
Can someone help me out ?
regards
~aslam
s***@sunhelp.org
2001-07-04 14:43:09 UTC
Permalink
Post by TAG DBA
Note that I am doing this as a user (not as root)
That's the problem. You can only add swap as root.
Post by TAG DBA
$ pwd
/home1
$ mkfile 1024m /home1/tempfile
$ chmod o+t /home1/tempfile
$ swap -a /home1/tempfile
"/home1/tempfile" is not valid for swapping.
It must be a block device or a regular file with the
"save user text on execution" bit set.
*shakes head*. Stupid error to give.

Brian.
--
Brian Scanlan, Systems Administrator.
Irish Times New Media - http://www.ireland.com
Continue reading on narkive:
Loading...