[SLUG] Mounting folders read only

2005-07-28 Thread Ashley Glenday








Hey guys,



Im hoping this is a simple one (however too
complicated for me). Is there anyway I can mount a folder read only just as I
would if it were a separate partition?

e.g.

mount /home/foo readonly even though its part of
/dev/hda1 which is read-write



Any help would be appreciated..



Regards

Ashley






-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Mounting folders read only

2005-07-28 Thread Thomas Schröder
Hi

You want the folder read-only?

What's with 

chmod -R a-w /home/foo


Cheers,
Thomas 


Am Donnerstag, 28. Juli 2005 01:54 schrieb Ashley Glenday:
 Hey guys,



 I'm hoping this is a simple one (however too complicated for me). Is there
 anyway I can mount a folder read only just as I would if it were a separate
 partition?

 e.g.

 mount /home/foo readonly even though it's part of /dev/hda1 which is
 read-write



 Any help would be appreciated..



 Regards

 Ashley

-- 
Thomas Schroeder
8/12 Hill Street
Coogee 2034
Australia

Phone: +61-2-9665 0005
Mobile: +61-4-0393 6500
eMail: [EMAIL PROTECTED]

PGP-Fingerprint: 
76CD 8E57 161D 471C D1E5  600C BBBE B9FE FA04 0CD1
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Reading DVDs

2005-07-28 Thread Peter Chubb

Hi,
I bpought myself a Ricoh RW5240, upgraded it to the latest
firmware, and stuck it in a USB case.   This works with Linux 2.6.13
and the usb-storage drivers.

However, every now and then, a DVD which I could read perfectly last
time I used it refuses to be read by this combination, although it
reads perfectly on my wife's Powerbook.

Does anyone have any idea what's going on?  Is this drive particularly
sensitive to dirt and scratches?  Or is the USB driver in Linux
particularly bad at recovering from errors?

The kinds of things I see are: (after dd if=/dev/sr8 of=/dev/null bs=32k)
...
usb-storage: Attempting to get CSW (2nd try)...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x2b R 32768 Stat 0x1
usb-storage: -- transport indicates command failure
usb-storage: -- unexpectedly short transfer
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk Command S 0x43425355 T 0x802b L 18 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 18 bytes
usb-storage: Status code 0; transferred 18/18
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW... 
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x802b R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x5, ASC: 0x64, ASCQ: 0x1
usb-storage: Illegal Request: Invalid packet size
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.
end_request: I/O error, dev sr8, sector 0
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Ubuntu or Gnome question

2005-07-28 Thread Ken Caldwell
On Thu, 2005-07-28 at 13:10 +1000, Ken Caldwell wrote:
 On Wed, 2005-07-27 at 18:47 +1000, Michael Chesterton wrote:
  Ken Caldwell [EMAIL PROTECTED] writes:
  
   I'm trying to make a custom version of Ubuntu without gdm. I want it to
   boot straight into the gnome desktop and shutdown from a menu item in
   the System menu.
  
   I have the first part working but have not been able to find the
   appropriate file(s) to edit to shut down the computer.
  
  You didn't have to get rid of gdm, you can configure gdm to sign in as
  a user on boot automatically. (System - Administration - Login
  Screen Setup) 
  
  I don't know if this helps, but to shutdown the computer, 
  System - Log out - Shutdown
  
  You can also add a logout applet to the panel
 But can I make it so that the user does not see the display manager when
 shutting down?
 
 When gdm is running and you select logout from the system menu you get a
 dialog box and then you can select shutdown but I want to make this the
 _only_ choice. You can set things so that you don't get the dialog but
 then you just exit the session arriving at the gdm login if gdm is
 running or at a command line prompt if gdm is not running.
In the end I edited /etc/sudoers to contain the line
me   ALL= NOPASSWD: /sbin/halt
and added a logout applet to the panel.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] creating new users with no shell as a default

2005-07-28 Thread Voytek
all the users on my RH server (apart from me) are web/mail users, that is,
they only need ftp access, no ssh, no shell

is this the correct way to create them (the /bin/false part):

adduser domain.com.au -s /bin/false -p passwd

how do I set the 'no shell' part as a defualt for future users ?
how can I verify the 'no shell' is set (apart from trying to ssh login (as
I'm currently doing))


-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] creating new users with no shell as a default

2005-07-28 Thread Michael Fox
On 7/29/05, Voytek [EMAIL PROTECTED] wrote:
 all the users on my RH server (apart from me) are web/mail users, that is,
 they only need ftp access, no ssh, no shell
 
 is this the correct way to create them (the /bin/false part):
 
 adduser domain.com.au -s /bin/false -p passwd
 
 how do I set the 'no shell' part as a defualt for future users ?
 how can I verify the 'no shell' is set (apart from trying to ssh login (as
 I'm currently doing))


Debian uses a file called adduser.conf in /etc for these default
values, not sure if your RH server would also.

Worth taking a look though..
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] creating new users with no shell as a default

2005-07-28 Thread John Clarke
On Fri, Jul 29, 2005 at 09:42:50 +1000, Voytek wrote:

 all the users on my RH server (apart from me) are web/mail users, that is,
 they only need ftp access, no ssh, no shell
 
 is this the correct way to create them (the /bin/false part):
 
 adduser domain.com.au -s /bin/false -p passwd

I'd use /sbin/nologin instead, but whatever you use, make sure it's
listed in /etc/shells.

 how do I set the 'no shell' part as a defualt for future users ?

Edit /etc/default/useradd.

 how can I verify the 'no shell' is set (apart from trying to ssh login (as

Look in /etc/passwd.  The last field on each line is the shell, e.g.:

johnc:x:500:500:John Clarke:/home/johnc:/bin/bash


Cheers,

John
-- 
snort's flexresp seems a tool worthy of the BOFH himself. And of
course, with a few misplaced keystrokes you can take the entire network
down, or at least stop anyone using it - that's always a bonus.
-- James Riden
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Ubuntu or Gnome question

2005-07-28 Thread jam
On Friday 29 July 2005 07:55, [EMAIL PROTECTED] wrote:
 On Wed, 2005-07-27 at 18:47 +1000, Michael Chesterton wrote:
  Ken Caldwell [EMAIL PROTECTED] writes:
   I'm trying to make a custom version of Ubuntu without gdm. I want it to
   boot straight into the gnome desktop and shutdown from a menu item in
   the System menu.
  
   I have the first part working but have not been able to find the
   appropriate file(s) to edit to shut down the computer.
 
  You didn't have to get rid of gdm, you can configure gdm to sign in as
  a user on boot automatically. (System - Administration - Login
  Screen Setup)
 
  I don't know if this helps, but to shutdown the computer,
  System - Log out - Shutdown
 
  You can also add a logout applet to the panel

 But can I make it so that the user does not see the display manager when
 shutting down?

 When gdm is running and you select logout from the system menu you get a
 dialog box and then you can select shutdown but I want to make this the
 _only_ choice. You can set things so that you don't get the dialog but
 then you just exit the session arriving at the gdm login if gdm is
 running or at a command line prompt if gdm is not running.

You could purchase SuSE and get their (pretty) splash screen on boot, then on 
shutdown, no dm ever. 
Your requirement is offbeat, most people don't want that, so you are unlikely 
to get it without lots of work, but of course it can be done.
You want it cheap, good and quickly: choose any two.
James
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Two problems - any CLUE/LART accepted

2005-07-28 Thread James Gray
Hi All,

From the coercion of a colleague (hi Mike), I've done the Quake3 thing - 
something I've always resisted.  I'm not a big FPS fan, RTS is more my thing, 
but anyway.

The hardware:
My system is a K8VSE-Deluxe AMD64-3000+ machine with an NVidia FX5700 card 
with TwinView (dual head) set up and working nicely with KDE.

First Problem:
Whilst hacking the bejeezus out of the Q3 installer to handle my AMD64 Kubuntu 
system, I realised the DVD-ROM has stopped running in DMA mode (WTF?).  It 
used to, but I haven't used it in over 4 months and I think there was a 
kernel update in there somewhere.  I've done the hdparm -d1 /dev/hda but it 
just barfs and syslog dumps a Drive Seek Error 0x51 etc in dmesg (yes, hda, 
my SATA drive is the boot drive and is sda).  Any ideas?  I'm not in front of 
my AMD64 box so chipsets/exact-errors will come laterjust thought someone 
might have seen this before?

Second Problem:
After getting Quake3 running (yay me...I think) I have it displayed on the 
second monitor (on the right) in the bottom-left corner with only the top 
half of the image displayed (see ASCII art below).  My primary monitor runs 
1280x1024 and the secondary runs 1024x768 with TwinView handling all the 
multi-head stuff.  Obviously 1/2 of a Q3 screen aint gonna get me anywhere so 
how can I force it onto the main dislpay at a reasonable resolution?
  
eg,

-
|   |
|   |
|This is all black  |
|   |  Primary monitor is over there --
|   |  and is totally black.
|  Quake 3  |   |
|  top 1/2  |   |
|  here |   |
-

Ideas anyone?  I need dual head more than I need quake, but it would be nice 
not having to boot that other OS just for the occasional fragging.

Cheers,

James
-- 
BOFH excuse #403:
Sysadmin didn't hear pager go off due to loud music from bar-room speakers.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] creating new users with no shell as a default

2005-07-28 Thread Voytek
thanks, John

quote who=John Clarke
 On Fri, Jul 29, 2005 at 09:42:50 +1000, Voytek wrote:

 I'd use /sbin/nologin instead, but whatever you use, make sure it's
 listed in /etc/shells.

I have these in /etc/shells:

/bin/sh
/bin/bash
/sbin/nologin
/bin/bash2
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
/bin/false

looking at /etc/passwd, it seems all current 'web' users have
'/bin/false', and, some 'service users' (like clam) have '/sbin/nologin'

 how do I set the 'no shell' part as a defualt for future users ?

 Edit /etc/default/useradd.

currently have this:
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel


 how can I verify the 'no shell' is set (apart from trying to ssh login
 (as


 Look in /etc/passwd.  The last field on each line is the shell, e.g.:


 johnc:x:500:500:John Clarke:/home/johnc:/bin/bash

can I edit /etc/passwd directly ? to alter home path ? shell ?

thanks again
-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Two problems - any $CLUE/$LART accepted

2005-07-28 Thread James Gray
Hi All,

From the coersion of a colleague (hi Mike), I've done the Quake3 thing - 
something I've always resisted.  I'm not a big FPS fan, RTS is more my thing, 
but anyway.

The hardware:
My system is a K8VSE-Deluxe AMD64-3000+ machine with an NVidia FX5700 card 
with TwinView (dual head) set up and working nicely with KDE.

First Problem:
Whilst hacking the bejeezus out of the Q3 installer to handle my AMD64 Kubuntu 
system, I realised the DVD-ROM has stopped running in DMA mode (WTF?).  It 
used to, but I haven't used it in over 4 months and I think there was a 
kernel update in there somewhere.  I've done the hdparm -d1 /dev/hda but it 
just barfs and syslog dumps a Drive Seek Error 0x51 etc in dmesg (yes, hda, 
my SATA drive is the boot drive and is sda).  Any ideas?  I'm not in front of 
my AMD64 box so chipsets/exact-errors will come laterjust thought someone 
might have seen this before?

Second Problem:
After getting Quake3 running (yay me...I think) I have it displayed on the 
second monitor (on the right) in the bottom-left corner with only the top 
half of the image displayed (see ASCII art below).  My primary monitor runs 
1280x1024 and the secondary runs 1024x768 with TwinView handling all the 
multi-head stuff.  Obviously 1/2 of a Q3 screen aint gonna get me anywhere so 
how can I force it onto the main dislpay at a reasonable resolution?
  
eg,

-
|   |
|   |
|This is all black  |
|   |  Primary monitor is over there --
|   |  and is totally black.
|  Quake 3  |   |
|  top 1/2  |   |
|  here |   |
-

Ideas anyone?  I need dual head more than I need quake, but it would be nice 
not having to boot that other OS just for the occasional fragging.

Cheers,

James
-- 
BOFH excuse #403:
Sysadmin didn't hear pager go off due to loud music from bar-room speakers.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] creating new users with no shell as a default

2005-07-28 Thread John Clarke
On Fri, Jul 29, 2005 at 10:53:34 +1000, Voytek wrote:

 SHELL=/bin/bash

That's what you want to change.

 can I edit /etc/passwd directly ? to alter home path ? shell ?

Yes (with vipw), but don't.  Use usermod instead.


Cheers,

John
-- 
This  is a.s.r; you  want n.a.n.a.e.,  where there  is a  _LONG_ queue
waiting to do Something Horrible to Telstra. It's slightly longer than
the  number of  people who  have ever  participated in  [EMAIL PROTECTED], and
growing at about the same rate. -- Mike Andrews
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Two problems - any CLUE/LART accepted

2005-07-28 Thread James Gray
On Fri, 29 Jul 2005 10:47 am, James Gray wrote:
 First Problem:
 Whilst hacking the bejeezus out of the Q3 installer to handle my AMD64
 Kubuntu system, I realised the DVD-ROM has stopped running in DMA mode
 (WTF?).  It used to, but I haven't used it in over 4 months and I think
 there was a kernel update in there somewhere.  I've done the hdparm -d1
 /dev/hda but it just barfs and syslog dumps a Drive Seek Error 0x51 etc
 in dmesg (yes, hda, my SATA drive is the boot drive and is sda).  Any
 ideas?  I'm not in front of my AMD64 box so chipsets/exact-errors will come
 laterjust thought someone might have seen this before?

OK - the DMA root cause has been identified:

$grep -i dma /boot/config-2.6.10-5-amd64-generic
...
CONFIG_IDEDMA_ONLYDISK=y

Ghoddammit! WHO put that in there?!? When?! Why?  Any brain-waves on how to 
disable it without a kernel compile?  I know how to build a kernel the 
debain way but I'd rather just stick with the distro's default kernels (coz 
I'm lazy and don't want to break stuff...like the NVidia package!).

$sudo hdparm -d1 /dev/hda
/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma=  0 (off)


$lspci
:00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host
 Bridge (rev 01)
:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800
 South]
:00:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
 Controller (rev 80)
:00:0a.0 Ethernet controller: Marvell Technology Group Ltd. Yukon Gigabit
 Ethernet 10/100/1000Base-T Adapter (rev 13)
:00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID
 Controller (rev 80)
:00:0f.1 IDE interface: VIA Technologies, Inc.
 VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
...
(snipped USB stuff and video card/AGP fru-fru)

James
-- 
Dump the condiments.  If we are to be eaten, we don't need to taste good.
-- Visionaries cartoon


pgpmUFU8r0e5x.pgp
Description: PGP signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Two problems - any CLUE/LART accepted

2005-07-28 Thread Felix Sheldon

James Gray wrote:


Hi All,

From the coercion of a colleague (hi Mike), I've done the Quake3 thing - 
something I've always resisted.  I'm not a big FPS fan, RTS is more my thing, 
but anyway.


The hardware:
My system is a K8VSE-Deluxe AMD64-3000+ machine with an NVidia FX5700 card 
with TwinView (dual head) set up and working nicely with KDE.


First Problem:
Whilst hacking the bejeezus out of the Q3 installer to handle my AMD64 Kubuntu 
system, I realised the DVD-ROM has stopped running in DMA mode (WTF?).  It 
used to, but I haven't used it in over 4 months and I think there was a 
kernel update in there somewhere.  I've done the hdparm -d1 /dev/hda but it 
just barfs and syslog dumps a Drive Seek Error 0x51 etc in dmesg (yes, hda, 
my SATA drive is the boot drive and is sda).  Any ideas?  I'm not in front of 
my AMD64 box so chipsets/exact-errors will come laterjust thought someone 
might have seen this before?


Second Problem:
After getting Quake3 running (yay me...I think) I have it displayed on the 
second monitor (on the right) in the bottom-left corner with only the top 
half of the image displayed (see ASCII art below).  My primary monitor runs 
1280x1024 and the secondary runs 1024x768 with TwinView handling all the 
multi-head stuff.  Obviously 1/2 of a Q3 screen aint gonna get me anywhere so 
how can I force it onto the main dislpay at a reasonable resolution?
 
 

You could run in windowed mode, if you can see enough of the settings 
menu, uncheck 'full screen', or hit alt-enter. I have seen Q3 display 
strangely if it's told to run in a resolution not actually listed in 
xorg.conf, have you tried setting Q3 resolution to 1024x768?


If it runs OK apart from all that, can you let me know what nVidia card 
you're using? I have plain Ubuntu on AMD64, but 32 bit games run at a 
fairly bad framerate and have glitches with textures displaying strangely.




eg,

-
|   |
|   |
|This is all black  |
|   |  Primary monitor is over there --
|   |  and is totally black.
|  Quake 3  |   |
|  top 1/2  |   |
|  here |   |
-

Ideas anyone?  I need dual head more than I need quake, but it would be nice 
not having to boot that other OS just for the occasional fragging.


 

Is there a graphical twinview config thingy where you could temporarily 
disable the 2nd screen? (Only a dirty camper would have time to check 
their email while playing Q3.) =)


--
Felix
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] creating new users with no shell as a default

2005-07-28 Thread tatz
Hi,

From: John Clarke [EMAIL PROTECTED]
Date: Fri, 29 Jul 2005 09:57:52 +1000

  how do I set the 'no shell' part as a defualt for future users ?
 
 Edit /etc/default/useradd.

Generally, these kind of information can be obtained by man pages.
So, if you have a question about useradd command, type
  man useradd
at command line. Then, you are noticed that file name.

Cheers,
-- 
SEKINE Tatsuo:
 [EMAIL PROTECTED]System Design  Research Inst. Co.,Ltd.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Automatic response to your mail

2005-07-28 Thread Jean
This account is currently closed.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html