Re: Re: hang during boot - mount: only root can do that
Permissions can be a proper pain ;P Had some problems myself a couple of times that ended up being solved by simply invoking chown or chmod to apply correct settings... -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAO8t=by1rkld7iefahykkhqp5zf13qwg11+tbrcrmkzvtbk...@mail.gmail.com
hang during boot - mount: only root can do that
Hello Debian Illuminati, In the past I've successfully booted a root filesystem created by copying a bootable system using rsync -avx (excluding the special directories /sys, /dev, /proc and /tmp which I create and adjust permissions as necessary.) This time I created an ext4 partition, made my rsync copy, set up a grub entry. The kernel is 2.6.36, OS is sid, the /etc/fstab entry is: /dev/sda7 / ext4 defaults,noatime,errors=remount-ro 0 1 Rebooting, I get this error: INIT: version 2.88 booting using makefile-style concurrent boot in runlevel S mount: only root can do that (effect UID is 1000) Similar errors continue, with warnings about a read-only filesystem, compounding until the system hangs. Any ideas what could be wrong? Thanks, -- Joel Roth -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20111003100412.GA2962@sprite
Re: hang during boot - mount: only root can do that
On Mon, Oct 03, 2011 at 12:04:12AM -1000, Joel Roth wrote: Rebooting, I get this error: INIT: version 2.88 booting using makefile-style concurrent boot in runlevel S mount: only root can do that (effect UID is 1000) Permissions problem. /sbin/init is not owned by root. -- Joel Roth -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20111003195239.GA6197@sprite
Re: mount: only root can do that?
e se no caso o dispositivo for um share windows? Um usuário normal pode montar?? Ou quais opções devo passar na linha de comando para que os usuários possam ter direito de escrita no compartilhamento? Em 07/03/06, Fabiano Pires [EMAIL PROTECTED] escreveu: Na verdade, tudo que está no fstab é montado na inicialização, a menosque exista a opção noauto.Fabiano2006/3/6, Alexandre Martani [EMAIL PROTECTED]: Em 06/03/06, Luciano Silva[EMAIL PROTECTED] escreveu: salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! como faço isso? Na 4a coluna do fstab, estão as opções, separadas por vírgulas. Use auto para montar automaticamente no boot e users para que todos os usuários possam montar e desmontar. -- Alexandre Martani - amartani em gmail com Ainda usando Rwindow$ + Internet Exploder ? Mude! Debian/Ubuntu GNU/Linux + Mozilla Firefox http://jonasgalvez.com/br/blog/2003-10/o-que-a-microsoft-esta-planejando http://counter.li.org/ - usuário Linux número 358811 http://jbonline.terra.com.br/jb/papel/cadernos/internet/2004/07/04/jorinf20040704001.html http://browsehappy.com/--Abraços,Fabiano -- Guilherme RochaConsultor de TecnologiaConheça o Debian-BR-CDD http://cdd.debian-br.orgConheça o egroupware https://e-gui.homelinux.org/egroupware#Linux Registered User: 391180
Re: mount: only root can do that?
Prezado Luciano,Efetue login como root ou execute o comando su e edite o arquivo /etc/fstab. Inclua a partição onde o Windows está instalado e inclua as opções específicas. Como por exemplo: /dev/hda5/mnt/windows_c vfat rw,user,auto 00 Tive alguns problemas quanto a escrita em partições do Windows XP, mesmo sendo FAT, como usuário comum não conseguia escrever nada, somente como root. Isso ocorre porque não é possível escrever quem será o proprietário do arquivo. Se alguém souber me explicar porque isso acontece, ficaria muito grato. Espero ter ajudado.Em 07/03/06, Guilherme Rocha [EMAIL PROTECTED] escreveu: e se no caso o dispositivo for um share windows? Um usuário normal pode montar?? Ou quais opções devo passar na linha de comando para que os usuários possam ter direito de escrita no compartilhamento? Em 07/03/06, Fabiano Pires [EMAIL PROTECTED] escreveu: Na verdade, tudo que está no fstab é montado na inicialização, a menosque exista a opção noauto.Fabiano2006/3/6, Alexandre Martani [EMAIL PROTECTED]: Em 06/03/06, Luciano Silva[EMAIL PROTECTED] escreveu: salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! como faço isso? Na 4a coluna do fstab, estão as opções, separadas por vírgulas. Use auto para montar automaticamente no boot e users para que todos os usuários possam montar e desmontar. -- Alexandre Martani - amartani em gmail com Ainda usando Rwindow$ + Internet Exploder ? Mude! Debian/Ubuntu GNU/Linux + Mozilla Firefox http://jonasgalvez.com/br/blog/2003-10/o-que-a-microsoft-esta-planejando http://counter.li.org/ - usuário Linux número 358811 http://jbonline.terra.com.br/jb/papel/cadernos/internet/2004/07/04/jorinf20040704001.html http://browsehappy.com/ --Abraços,Fabiano -- Guilherme RochaConsultor de TecnologiaConheça o Debian-BR-CDD http://cdd.debian-br.orgConheça o egroupware https://e-gui.homelinux.org/egroupware#Linux Registered User: 391180 -- /@@@ //@/ @@/@@/////// Hallison Batista /////@@@///@@@@@@///@@//@//@@@// Usuário Debian GNU/Linux //@@@///@@@///@@@//@@@///@@/ [EMAIL PROTECTED]@@@/ /@@@ Seja livre, use Debian GNU/Linux!//// //@@@///
Re: mount: only root can do that?
Bom dia, Em minha configurao no arquivo /etc/fstab a linha de montagem do hda3 (partio FAT32) est desta forma: /dev/hda3 /mnt/hda3 vfat auto,users,exec,umask=000 0 0 Aqui monta perfeitamente. At onde sei os problemas de permisso citados no so realmente problemas. O que acontece que no possvel setar direitos diferentes entre o root e usurios comuns em parties VFAT. As permisses so setadas no momento da montagem via fstab. Acho que isso soluciona a dvida. Abraos... LEMOS Em Ter, 2006-03-07 s 08:48 -0400, Hallison Batista escreveu: Prezado Luciano, Efetue login como root ou execute o comando su e edite o arquivo /etc/fstab. Inclua a partio onde o Windows est instalado e inclua as opes especficas. Como por exemplo: /dev/hda5/mnt/windows_c vfat rw,user,auto 00 Tive alguns problemas quanto a escrita em parties do Windows XP, mesmo sendo FAT, como usurio comum no conseguia escrever nada, somente como root. Isso ocorre porque no possvel escrever quem ser o proprietrio do arquivo. Se algum souber me explicar porque isso acontece, ficaria muito grato. Espero ter ajudado. Em 07/03/06, Guilherme Rocha [EMAIL PROTECTED] escreveu: e se no caso o dispositivo for um share windows? Um usurio normal pode montar?? Ou quais opes devo passar na linha de comando para que os usurios possam ter direito de escrita no compartilhamento? Em 07/03/06, Fabiano Pires [EMAIL PROTECTED] escreveu: Na verdade, tudo que est no fstab montado na inicializao, a menos que exista a opo noauto. Fabiano 2006/3/6, Alexandre Martani [EMAIL PROTECTED]: Em 06/03/06, Luciano Silva[EMAIL PROTECTED] escreveu: salve! poxa! tudo soh pode como root? :P Criei um usurio simples, e at coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicializao para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usurio )! como fao isso? Na 4a coluna do fstab, esto as opes, separadas por vrgulas. Use auto para montar automaticamente no boot e users para que todos os usurios possam montar e desmontar. -- Alexandre Martani - amartani em gmail com Ainda usando Rwindow$ + Internet Exploder ? Mude! Debian/Ubuntu GNU/Linux + Mozilla Firefox http://jonasgalvez.com/br/blog/2003-10/o-que-a-microsoft-esta-planejando http://counter.li.org/ - usurio Linux nmero 358811 http://jbonline.terra.com.br/jb/papel/cadernos/internet/2004/07/04/jorinf20040704001.html http://browsehappy.com/ -- Abraos, Fabiano -- Guilherme Rocha Consultor de Tecnologia Conhea o Debian-BR-CDD http://cdd.debian-br.org Conhea o egroupware https://e-gui.homelinux.org/egroupware #Linux Registered User: 391180 -- /@@@ //@/ @@/@@/// //////// Hallison Batista /////@@@///@@@// //@@@///@@//@//@@@// Usurio Debian GNU/Linux //@@@///@@@///@@@/// ///@@@///@@/ [EMAIL PROTECTED] @@@/ /@@@ Seja livre, use Debian GNU/Linux! //// //@@@///
Re: mount: only root can do that?
Prezado Lemos,Agradeço a resposta quanto às permissões de escrita em VFAT. Você saberia algo sobre o mesmo assunto, mas utilizando NTFS?Agradeço a atenção. 2006/3/7, Daniel Lemos Gontijo [EMAIL PROTECTED]: Bom dia, Em minha configuração no arquivo /etc/fstab a linha de montagem do hda3 (partição FAT32) está desta forma: /dev/hda3 /mnt/hda3 vfat auto,users,exec,umask=000 0 0 Aqui monta perfeitamente. Até onde sei os problemas de permissão citados não são realmente problemas. O que acontece é que não é possível setar direitos diferentes entre o root e usuários comuns em partições VFAT. As permissões são setadas no momento da montagem via fstab. Acho que isso soluciona a dúvida. Abraços... LEMOS Em Ter, 2006-03-07 às 08:48 -0400, Hallison Batista escreveu: Prezado Luciano, Efetue login como root ou execute o comando su e edite o arquivo /etc/fstab. Inclua a partição onde o Windows está instalado e inclua as opções específicas. Como por exemplo: /dev/hda5/mnt/windows_c vfat rw,user,auto 00 Tive alguns problemas quanto a escrita em partições do Windows XP, mesmo sendo FAT, como usuário comum não conseguia escrever nada, somente como root. Isso ocorre porque não é possível escrever quem será o proprietário do arquivo. Se alguém souber me explicar porque isso acontece, ficaria muito grato. Espero ter ajudado. Em 07/03/06, Guilherme Rocha [EMAIL PROTECTED] escreveu: e se no caso o dispositivo for um share windows? Um usuário normal pode montar?? Ou quais opções devo passar na linha de comando para que os usuários possam ter direito de escrita no compartilhamento? Em 07/03/06, Fabiano Pires [EMAIL PROTECTED] escreveu: Na verdade, tudo que está no fstab é montado na inicialização, a menos que exista a opção noauto. Fabiano 2006/3/6, Alexandre Martani [EMAIL PROTECTED]: Em 06/03/06, Luciano Silva[EMAIL PROTECTED] escreveu: salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! como faço isso? Na 4a coluna do fstab, estão as opções, separadas por vírgulas. Use auto para montar automaticamente no boot e users para que todos os usuários possam montar e desmontar. -- Alexandre Martani - amartani em gmail com Ainda usando Rwindow$ + Internet Exploder ? Mude! Debian/Ubuntu GNU/Linux + Mozilla Firefox http://jonasgalvez.com/br/blog/2003-10/o-que-a-microsoft-esta-planejando http://counter.li.org/ - usuário Linux número 358811 http://jbonline.terra.com.br/jb/papel/cadernos/internet/2004/07/04/jorinf20040704001.html http://browsehappy.com/ -- Abraços, Fabiano -- Guilherme Rocha Consultor de Tecnologia Conheça o Debian-BR-CDD http://cdd.debian-br.org Conheça o egroupware https://e-gui.homelinux.org/egroupware #Linux Registered User: 391180 -- /@@@ //@/ @@/@@/// //////// Hallison Batista /////@@@///@@@// //@@@///@@//@//@@@// Usuário Debian GNU/Linux //@@@///@@@///@@@/// ///@@@///@@/ [EMAIL PROTECTED] @@@/ /@@@ Seja livre, use Debian GNU/Linux! //// //@@@/// -- /@@@//@/ @@/@@/////// Hallison Batista /////@@@///@@@@@@///@@//@//@@@// Usuário Debian GNU/Linux //@@@///@@@///@@@//@@@///@@/ [EMAIL PROTECTED]@@@/ /@@@ Seja livre, use Debian GNU/Linux!//// //@@@///
Re: mount: only root can do that?
Procure pelo captive, ele resolve seu problema (porem não perfeitamente, linux ainda não trabalha muito bem com o ntfs) abraços - Original Message - From: Hallison Batista To: Daniel Lemos Gontijo Cc: Lista DebianBR Sent: Tuesday, March 07, 2006 10:19 AM Subject: Re: mount: only root can do that? Prezado Lemos,Agradeço a resposta quanto às "permissões" de escrita em VFAT. Você saberia algo sobre o mesmo assunto, mas utilizando NTFS?Agradeço a atenção. 2006/3/7, Daniel Lemos Gontijo [EMAIL PROTECTED]: Bom dia,Em minha configuração no arquivo "/etc/fstab" a linha de montagem do hda3 (partição FAT32) está desta forma:/dev/hda3 /mnt/hda3 vfat auto,users,exec,umask=000 0 0Aqui monta perfeitamente.Até onde sei os "problemas" de permissão citados não são realmente problemas. O que acontece é que não é possível setar direitos diferentes entre o root e usuários comuns em partições VFAT. As permissões são setadas no momento da montagem via fstab. Acho que isso soluciona a dúvida.Abraços... LEMOSEm Ter, 2006-03-07 às 08:48 -0400, Hallison Batista escreveu: Prezado Luciano,Efetue login como root ou execute o comando su e edite o arquivo /etc/fstab. Inclua a partição onde o Windows está instalado e inclua as opções específicas. Como por exemplo:/dev/hda5 /mnt/windows_c vfat rw,user,auto 0 0Tive alguns problemas quanto a escrita em partições do Windows XP, mesmo sendo FAT, como usuário comum não conseguia escrever nada, somente como root. Isso ocorre porque não é possível escrever quem será o proprietário do arquivo. Se alguém souber me explicar porque isso acontece, ficaria muito grato. Espero ter ajudado. Em 07/03/06, Guilherme Rocha [EMAIL PROTECTED] escreveu: e se no caso o dispositivo for um share windows?Um usuário normal pode montar??Ou quais opções devo passar na linha de comando para que os usuários possam ter direito de escrita no compartilhamento? Em 07/03/06, Fabiano Pires [EMAIL PROTECTED] escreveu: Na verdade, tudo que está no fstab é montado na inicialização, a menosque exista a opção noauto.Fabiano2006/3/6, Alexandre Martani [EMAIL PROTECTED]: Em 06/03/06, Luciano Silva[EMAIL PROTECTED] escreveu: salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! como faço isso? Na 4a coluna do fstab, estão as opções, separadas por vírgulas. Use auto para montar automaticamente no boot e users para que todos os usuários possam montar e desmontar. -- Alexandre Martani - amartani em gmail com Ainda usando Rwindow$ + Internet Exploder ? Mude! Debian/Ubuntu GNU/Linux + Mozilla Firefox http://jonasgalvez.com/br/blog/2003-10/o-que-a-microsoft-esta-planejando http://counter.li.org/ - usuário Linux número 358811 http://jbonline.terra.com.br/jb/papel/cadernos/internet/2004/07/04/jorinf20040704001.html http://browsehappy.com/--Abraços,Fabiano -- Guilherme RochaConsultor de TecnologiaConheça o Debian-BR-CDD http://cdd.debian-br.orgConheça o egroupware https://e-gui.homelinux.org/egroupware #Linux Registered User: 391180 -- /@@@//@/@@/@@/////// Hallison Batista/////@@@///@@@@@@///@@//@//@@@// Usuário Debian GNU/Linux//@@@///@@@///@@@//@@@///@@/ [EMAIL PROTECTED]@@@//@@@ "Seja livre, use Debian GNU/Linux!"//////@@@/// -- /@@@//@/@@/@@/////// Hallison Batista/////@@@///@@@@@@///@@//@//@@@// Usuário Debian GNU/Linux//@@@///@@@///@@@//@@@///@@/ [EMAIL PROTECTED]@@@//@@@ "Seja livre, use Debian GNU/Linux!"//////@@@///
Re: mount: only root can do that?
On Tue, 7 Mar 2006 08:18:48 -0300 Guilherme Rocha [EMAIL PROTECTED] wrote: Ou quais opções devo passar na linha de comando para que os usuários possam ter direito de escrita no compartilhamento? Veja se isto resolve: /dev/hda1 /winvfat iocharset=iso8859-1,codepage=850,umask=0,gid=100,uid=1000 0 0 -- Sávio Martins Ramos - Arquiteto Rio de Janeiro ICQ 174972645 Pirataria não! Seja livre: Linux http://www.debian.org
Re: mount: only root can do that?
Prezados,Agradeço a atenção prestada. Vou verificar as duas soluções: o captive e a edição do fstab e reportarei o resultado.Agradeço a atenção.Em 07/03/06, Savio Ramos [EMAIL PROTECTED] escreveu: On Tue, 7 Mar 2006 08:18:48 -0300Guilherme Rocha [EMAIL PROTECTED] wrote: Ou quais opções devo passar na linha de comando para que os usuários possam ter direito de escrita no compartilhamento?Veja se isto resolve:/dev/hda1 /winvfatiocharset=iso8859-1,codepage=850,umask=0,gid=100,uid=1000 0 0 --Sávio Martins Ramos -ArquitetoRio de JaneiroICQ 174972645Pirataria não! Seja livre: Linuxhttp://www.debian.org -- /@@@ //@/@@/@@/// //////// Hallison Batista/////@@@///@@@// //@@@///@@//@//@@@// Usuário Debian GNU/Linux //@@@///@@@///@@@//@@@///@@/ [EMAIL PROTECTED] @@@/ /@@@ Seja livre, use Debian GNU/Linux!//// //@@@///
Re: mount: only root can do that?
Luciano Silva escreveu: salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! como faço isso? []'s 1) Tire seu usuário comum do grupo root. É mais seguro. 2) No seu /etc/fstab, na 4a. coluna, inclua auto e users (sem as haspas, claro, e separados por vírgulas), assim, a montagem será automática. E caso seja necessário, você poderá montá-la e desmontá-la como usuário comum. Deixe para o root o que é para o root. 3) Se a sua partição for ntfs, você só terá permissão de leitura. E só poderá montá-la como root. Boa sorte. Sérgio -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
mount: only root can do that?
salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! como faço isso? []'s
Re: mount: only root can do that?
Luciano Silva wrote: salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! Bom, se vai montar sempre na inicialização, vc pode usar o /etc/fstab Sugiro olhar o seu e procurar no google alguns exemplos, há alguns truques que não lembro de cabeça e já foram todos discutidos aqui no histórico da lista. -- Marcos -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: mount: only root can do that?
Em 06/03/06, Luciano Silva[EMAIL PROTECTED] escreveu: salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! como faço isso? Na 4a coluna do fstab, estão as opções, separadas por vírgulas. Use auto para montar automaticamente no boot e users para que todos os usuários possam montar e desmontar. -- Alexandre Martani - amartani em gmail com Ainda usando Rwindow$ + Internet Exploder ? Mude! Debian/Ubuntu GNU/Linux + Mozilla Firefox http://jonasgalvez.com/br/blog/2003-10/o-que-a-microsoft-esta-planejando http://counter.li.org/ - usuário Linux número 358811 http://jbonline.terra.com.br/jb/papel/cadernos/internet/2004/07/04/jorinf20040704001.html http://browsehappy.com/
Re: mount: only root can do that?
Na verdade, tudo que está no fstab é montado na inicialização, a menos que exista a opção noauto. Fabiano 2006/3/6, Alexandre Martani [EMAIL PROTECTED]: Em 06/03/06, Luciano Silva[EMAIL PROTECTED] escreveu: salve! poxa! tudo soh pode como root? :P Criei um usuário simples, e até coloquei ele no group root... mas estou com alguns problemas, por exemplo, um script na inicialização para que seja montada as unidades windows sempre que seja feito o login ( indiferente o usuário )! como faço isso? Na 4a coluna do fstab, estão as opções, separadas por vírgulas. Use auto para montar automaticamente no boot e users para que todos os usuários possam montar e desmontar. -- Alexandre Martani - amartani em gmail com Ainda usando Rwindow$ + Internet Exploder ? Mude! Debian/Ubuntu GNU/Linux + Mozilla Firefox http://jonasgalvez.com/br/blog/2003-10/o-que-a-microsoft-esta-planejando http://counter.li.org/ - usuário Linux número 358811 http://jbonline.terra.com.br/jb/papel/cadernos/internet/2004/07/04/jorinf20040704001.html http://browsehappy.com/ -- Abraços, Fabiano
mount: only root can do that
howdy everyone. could someone tell me how to allow a regular debian user to mount a cdrom? odd that, you can create the cdrom device with kde and mount it, but the user can't use console mount commands to mount the same device. here's the fstab: # /etc/fstab: static file system information. # # file system mount point type options dump pass proc/proc procdefaults0 0 /dev/hda3 / ext3defaults,errors=remount-ro 0 1 /dev/hda1 /boot ext3defaults0 2 /dev/hda2 noneswapsw 0 0 /dev/hdc/media/cdrom0 iso9660 ro,user,noauto 0 0 /dev/fd0/media/floppy0 autorw,user,noauto 0 0 and here's an example command i'm using to try to mount along with it's output: [EMAIL PROTECTED]:~$ mount -t auto /dev/hdc /media/cdrom0 mount: only root can do that tia! -jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: mount: only root can do that
On Wed, Jun 01, 2005 at 09:25:11AM -0400, jmr_071769 wrote: } howdy everyone. } } could someone tell me how to allow a regular debian user to mount a } cdrom? odd that, you can create the cdrom device with kde and mount it, } but the user can't use console mount commands to mount the same device. } } here's the fstab: [...] } /dev/hdc/media/cdrom0 iso9660 ro,user,noauto 0 0 This is correct. } and here's an example command i'm using to try to mount along with it's } output: } } [EMAIL PROTECTED]:~$ mount -t auto /dev/hdc /media/cdrom0 } mount: only root can do that mount /media/cdrom0 You see, only root is allowed to give extra options or specify what is being mounted to the given mount point. If you just ask it to mount what belongs on /media/cdrom0, any user has permission. That's what KDE is doing. } tia! } -jeff --Greg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: mount: only root can do that
jmr_071769 [EMAIL PROTECTED] writes: howdy everyone. could someone tell me how to allow a regular debian user to mount a cdrom? odd that, you can create the cdrom device with kde and mount it, but the user can't use console mount commands to mount the same device. here's the fstab: # /etc/fstab: static file system information. # # file system mount point type options dump pass proc/proc procdefaults0 0 /dev/hda3 / ext3defaults,errors=remount-ro 0 1 /dev/hda1 /boot ext3defaults0 2 /dev/hda2 noneswapsw 0 0 /dev/hdc/media/cdrom0 iso9660 ro,user,noauto 0 0 /dev/fd0/media/floppy0 autorw,user,noauto 0 0 and here's an example command i'm using to try to mount along with it's output: [EMAIL PROTECTED]:~$ mount -t auto /dev/hdc /media/cdrom0 mount: only root can do that try mount /media/cdrom0. If you add device and -t, then it no longer corresponds to the fstab-entry, where option user is set. -- Felix Natter -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: mount: only root can do that??
On 26 Jan 1998, Paul Seelig wrote: The command mount -t msdos /dev/fd0 /floppy works only for root, but mount /floppy should properly work for every user who is member of the 'floppy' group. The same applies for 'cdrom'. Thanks. I did not know that. As a user I tried mount /dev/fd0 /floppy before. mount /floppy works fine. Johann Spies [EMAIL PROTECTED] Windsorlaan 19 Pietermaritzburg 3201 Suid Afrika (South Africa) Tel/Faks Nr. +27 331-46-1310 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: mount: only root can do that??
On 26 Jan 1998, Paul Seelig wrote: [EMAIL PROTECTED] (Johann Spies) writes: I am trying to change /etc/fstab to allow the user to mount the floppy and the cdrom. The following lines did not help: /dev/cdrom /cdrom iso9660 defaults,noauto,ro,user 0 0 /dev/fd0/floppy msdos defaults,noauto,user0 0 Why not? Are the users members of the 'cdrom' and 'floppy' groups? What is the command user's are supposed to use for mounting, but resulting in the error message stated in the subject header line? The command mount -t msdos /dev/fd0 /floppy works only for root, but mount /floppy should properly work for every user who is member of the 'floppy' group. The same applies for 'cdrom'. I thought this was true, but it doesn't seem to be true anymore somehow. I am following hamm closely and using shadow passwords. When /bin/mount is setuid root, everybody can mount the floppy drive. When someone tries to mount something that is not in /etc/fstab, I get this error: mount: only root can do that I didn't expect it because mount is setuid root, but this is okay to me. However, when mount is not setuid root, only root can mount filesystems. Any user, whether a member of the floppy group or not, gets this: $ mount /floppy mount: must be superuser to use mount $ Note that the error is a different one. But it is still an error. The relevant entry in /etc/fstab reads: /dev/fd0 /floppy msdos defaults,noauto,user,umask=077 0 0 All the /dev/fd0* devices have these permissions: brw-rw 1 root floppy 2, 0 Jan 9 15:05 /dev/fd0 Does anybody know what's going wrong on my computer? I think it worked once for me, but I am not sure how I did it then and how long ago it was. Remco -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: mount: only root can do that??
Try changing the permissions on /dev/cdrom to read and execute for all. For the floppy chmod 666 /dev/fd0 should do the trick Jonathan On Mon, 26 Jan 1998, E.L. Meijer (Eric) wrote: Hallo, I am trying to change /etc/fstab to allow the user to mount the floppy and the cdrom. The following lines did not help: /dev/cdrom /cdrom iso9660 defaults,noauto,ro,user 0 0 /dev/fd0/floppy msdos defaults,noauto,user0 0 Why not? I don't know about the floppy, but for the cdrom you will have to put the actual device in the file instead of /dev/cdrom, so you'll get something like /dev/hdd/cdrom iso9660 defaults,ro,user,noauto 0 0 The problem with /dev/cdrom is that it is a symbolic link. If you type mount /cdrom, it will follow the link, and mount (e.g.) /dev/hdd on /cdrom. But if you try to unmount it, umount only knows that /dev/hdd is mounted (doesn't know about /dev/cdrom anymore), and fails. Eric Meijer -- E.L. Meijer ([EMAIL PROTECTED]) | tel. office +31 40 2472189 Eindhoven Univ. of Technology | tel. lab. +31 40 2475032 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax+31 40 2455054 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] . -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: mount: only root can do that??
When /bin/mount is setuid root, everybody can mount the floppy drive. When someone tries to mount something that is not in /etc/fstab, I get this error: mount: only root can do that I didn't expect it because mount is setuid root, but this is okay to me. I do expect that. Mount checks for a line in /etc/fstab and for user in that line, and if both are not found, it issues an error message and refuses to mount. What's wrong with that? See section (iii) of man mount. Just because a program runs setuid root, it doesn't mean the author will let you do anything. Probably just the opposite, in fact. However, when mount is not setuid root, only root can mount filesystems. Any user, whether a member of the floppy group or not, gets this: $ mount /floppy mount: must be superuser to use mount $ Note that the error is a different one. But it is still an error. Only superuser can mount filesystems (see (iii) again). So that error message is correct. Either you must be superuser, or you must be running a program with root privilege. The relevant entry in /etc/fstab reads: /dev/fd0 /floppy msdos defaults,noauto,user,umask=077 0 0 All the /dev/fd0* devices have these permissions: brw-rw 1 root floppy 2, 0 Jan 9 15:05 /dev/fd0 Does anybody know what's going wrong on my computer? I think it worked once for me, but I am not sure how I did it then and how long ago it was. Doesn't look like anything is wrong. Cheers. -- David Wright, Open University, Earth Science Department, Milton Keynes MK7 6AA U.K. email: [EMAIL PROTECTED] tel: +44 1908 653 739 fax: +44 1908 655 151 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: mount: only root can do that??
Try changing the permissions on /dev/cdrom to read and execute for all. For the floppy chmod 666 /dev/fd0 should do the trick Jonathan Just tested that to floppy. Now mtools works by users also. I recommend all to install these mtools, these are very good when disks are used as transfer media. mdir mcopy mdel and these works just like DOS commands. There is no need of mounting by hand, because these mounts - does task - and unmounts. --- Jarkko Niemi-==( Backup not found: (A)bort (R)etry (P)anic )==- [EMAIL PROTECTED] -=( finger [EMAIL PROTECTED] or http://www.sci.fi/~jin )=- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: mount: only root can do that??
On Tue, 27 Jan 1998, David Wright wrote: However, when mount is not setuid root, only root can mount filesystems. Any user, whether a member of the floppy group or not, gets this: $ mount /floppy mount: must be superuser to use mount $ Note that the error is a different one. But it is still an error. Only superuser can mount filesystems (see (iii) again). So that error message is correct. Either you must be superuser, or you must be running a program with root privilege. The relevant entry in /etc/fstab reads: /dev/fd0 /floppy msdos defaults,noauto,user,umask=077 0 0 All the /dev/fd0* devices have these permissions: brw-rw 1 root floppy 2, 0 Jan 9 15:05 /dev/fd0 Does anybody know what's going wrong on my computer? I think it worked once for me, but I am not sure how I did it then and how long ago it was. Doesn't look like anything is wrong. But what I want is this: 1 root can mount anything 2 users in group floppy can mount the floppy drive 3 users not in group floppy can not mount the floppy drive Of course, 1 is always true. But I can't get 2 and 3 at the same time. Either mount is setuid and then all users can mount the floppy, or it is not setuid and then only root can mount the floppy. Now, how can I do that? Remco -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Floppy and CDROM-Mount with amd (was: mount: only root can do that)
Hello ! As a suggestion how to use the amd automounter to mount floppies and cdroms check out the contents of the directory: ftp://134.147.254.50/pub/linux Regards, Albert Fluegel email: [EMAIL PROTECTED] Web: http://www.muc.de/~af -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: mount: only root can do that??
Remco Blaakmeer [EMAIL PROTECTED] writes: But what I want is this: 1 root can mount anything 2 users in group floppy can mount the floppy drive 3 users not in group floppy can not mount the floppy drive Of course, 1 is always true. But I can't get 2 and 3 at the same time. Either mount is setuid and then all users can mount the floppy, or it is not setuid and then only root can mount the floppy. I use super for something similar for my ZIP-drive. In /etc/super.tab : zon /usr/local/bin/zon.sh :zipmount uid=root zoff /usr/local/bin/zoff.sh:zipmount uid=root This will allow users in group zipmount to use these commands. I didn't put anyone in this group, but added zipmount to the CONSOLE_GROUPS line in /etc/login.defs. So anyone is able to mount the ZIP, if he logs on from the console. *** Security warning *** And I wouldn't use the floppy group either. If you have brw-rw 1 root floppy 2, 0 Apr 14 1997 /dev/fd0 everyone in group floppy would have access to rawdevice and could read the floppy without mounting it. I saw a posting with the advice to chmod 666 the device. DON'T DO THIS. This will allow anyone (even remoteusers) to cat the contents of the device. Just try cat /dev/fd0. This is important, if the user at the console doesn't like it, if others can read the contents of his floppy. Now back to my solution: bash-2.01$ cat /usr/local/bin/zon.sh #!/bin/sh modprobe ppa 2/dev/null uid=`grep $ORIG_USER /etc/passwd|perl -e '$_=(split /:/,)[2];print'` mount -t vfat -o rw,nodev,noexec,uid=$uid,umask=077,quiet /dev/sda4 /zip echo ZIP gemountet unter /zip bash-2.01$ cat /usr/local/bin/zoff.sh #!/bin/sh umount /zip echo ZIP unmounted rmmod ppa 2/dev/null Then do ln -s /usr/bin/super /usr/local/bin/zon ln -s /usr/bin/super /usr/local/bin/zon and you are done. Summery: With this method, anyone who logs on to the console (including xdm login from localhost) can mount the ZIP. Only he will be able to access the filesystem, raw access to the device is not possible. Use zon to mount the ZIP and zoff to unmount it. Sounds like a perfect solution, doesn't it :-) Ciao, Martin -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: mount: only root can do that??
On Tue, 27 Jan 1998, Remco Blaakmeer wrote: But what I want is this: 1 root can mount anything 2 users in group floppy can mount the floppy drive 3 users not in group floppy can not mount the floppy drive Of course, 1 is always true. But I can't get 2 and 3 at the same time. Either mount is setuid and then all users can mount the floppy, or it is not setuid and then only root can mount the floppy. Now, how can I do that? I think you need a piece of software designed to do that and I think the xvmount package is one. I don't know if the amd package has this functionality or not. David. -- David Wright, Open University, Earth Science Department, Milton Keynes MK7 6AA U.K. email: [EMAIL PROTECTED] tel: +44 1908 653 739 fax: +44 1908 655 151 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
mount: only root can do that??
Hallo, I am trying to change /etc/fstab to allow the user to mount the floppy and the cdrom. The following lines did not help: /dev/cdrom /cdrom iso9660 defaults,noauto,ro,user 0 0 /dev/fd0/floppy msdos defaults,noauto,user0 0 Why not? Johann. Johann Spies [EMAIL PROTECTED] Windsorlaan 19 Pietermaritzburg 3201 Suid Afrika (South Africa) Tel/Faks Nr. +27 331-46-1310 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: mount: only root can do that??
Hallo, I am trying to change /etc/fstab to allow the user to mount the floppy and the cdrom. The following lines did not help: /dev/cdrom/cdrom iso9660 defaults,noauto,ro,user 0 0 /dev/fd0 /floppy msdos defaults,noauto,user0 0 Why not? I don't know about the floppy, but for the cdrom you will have to put the actual device in the file instead of /dev/cdrom, so you'll get something like /dev/hdd/cdrom iso9660 defaults,ro,user,noauto 0 0 The problem with /dev/cdrom is that it is a symbolic link. If you type mount /cdrom, it will follow the link, and mount (e.g.) /dev/hdd on /cdrom. But if you try to unmount it, umount only knows that /dev/hdd is mounted (doesn't know about /dev/cdrom anymore), and fails. Eric Meijer -- E.L. Meijer ([EMAIL PROTECTED]) | tel. office +31 40 2472189 Eindhoven Univ. of Technology | tel. lab. +31 40 2475032 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax+31 40 2455054 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .