[BL] BL3 as 'user' D
keesan at sdf.lonestar.org
Mon Jan 22 15:38:29 EST 2007
On Sat, 20 Jan 2007, David Moberg wrote:
> sindi keesan wrote:
>> I need the following to be 'user'-usable:
>> To use X:
> Set it so that user 0/root owns it, then set the suid bit and allow it
> to be executed by user. It writes directly to the hardware.
Should I change this? It works now.
Chmod -x then chmod +s?
> sh and rxvt need to be executable by user.
sh is part of busybox which is -rwxr-xr-x
rxvt: Failed to open input method, can't open pseudo-tty
>> To use X programs:
> All X programs need to read/write their data files. All X programs
> also need to connect to the X server. Start Xvesa with the -ac option,
> as Lee suggested, if there is a permission problem. You may also need
> to change the DISPLAY env variable from =":0" to ="IP:0", where IP is
> the localhost (127.0.0.1 or your `hostname`). Opera probably wants to
> write to several different locations. Try it and see.
Xvesa works: -rwxr-xr-x no change of display
Opera needed to write .qt to /home/user so I made that writable
>> Other programs:
>> zgv (to view photos)
> Requires suid (root permissions), as all svgalib programs do. Also
> needs to read the photos.
Working. -r-s--x--x -Should I change this?
The photos are -rwxr-xr-x, as they came from the camera.
> Only needs to be executable and have access to the PDF.
>> To print:
>> gs (and some way to shrink gs to a minimum with just Times New Roman and
>> no Chinese fonts - this will be a big project. Start with just gs and see
>> what it complains about?).
It complains of
svgalib: Cannot get I/O permissions.
It uses libvga.so.1 and libvgagl.so.1
chmod 777 libvga* -rwxrwxrwx
It still cannot get I/O permissions
The above is all BL3.
gs worked for user in BL2 where it used X by default.
>> lpr already works for 'user' but not 'root'
> You could send the data directly to the printer (as wp and the netpbm
> scripts do now). That would eliminate the need for a user account due
> to lpr's permission problem. An lpr script could accept a postscript
> file on stdin and use ghostscript to filter it, then send it to the
I can print ps files directly with gs after saving to a file in Abiword
and Opera, in a script based on gs. But the same script (printdj) will
not work to print from them within Opera or Abiword. Can you check this
out? It is a pain to use 'user' instead of 'root'.
>> The user would be instructed to type user and then Enter instead of
>> pressing Enter. In rc.d?
> Just edit /etc/issue.
rxvt is not working in BL3 either.
More information about the BasLinux