All of lore.kernel.org
 help / color / mirror / Atom feed
* sudoers
@ 2005-10-07 13:53 Andrzej Kaczmarczyk
  2005-10-07 15:46 ` sudoers Andrzej Kaczmarczyk
  0 siblings, 1 reply; 5+ messages in thread
From: Andrzej Kaczmarczyk @ 2005-10-07 13:53 UTC (permalink / raw)
  To: linux-msdos

Hi,

this is something easy (I am sure), yet I can't see it.

I have two stations, with identical dosemu's settings, and identical sudoers 
files.

on one station I can run dosemu -s with no problem
on another I have to give user password.

CUIN Kaczy
*puzzled*




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sudoers
  2005-10-07 13:53 sudoers Andrzej Kaczmarczyk
@ 2005-10-07 15:46 ` Andrzej Kaczmarczyk
  0 siblings, 0 replies; 5+ messages in thread
From: Andrzej Kaczmarczyk @ 2005-10-07 15:46 UTC (permalink / raw)
  To: linux-msdos

fixed, I had the wrong graphics card set (I have VIA integrated, so I've set 
to vesa, previously it was "sis") - why did it asked for password however is 
beyond me.

CUIN Kaczy
ps. if you have buggy settings (like messed $console and $graphics settings, 
it will also ask for password even if the $chipset is set to "vesa")


U¿ytkownik "Andrzej Kaczmarczyk" <akaczmarczyk@visualsystems.com.pl> napisa³ 
w wiadomo¶ci news:di5ugv$bsl$1@sea.gmane.org...
> Hi,
>
> this is something easy (I am sure), yet I can't see it.
>
> I have two stations, with identical dosemu's settings, and identical 
> sudoers files.
>
> on one station I can run dosemu -s with no problem
> on another I have to give user password.
>
> CUIN Kaczy
> *puzzled*
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* sudoers
@ 2008-07-09 13:19 Mário Gamito
       [not found] ` <4874BDED.9020402@excilys.com>
  2008-07-09 13:56 ` sudoers nmaupu
  0 siblings, 2 replies; 5+ messages in thread
From: Mário Gamito @ 2008-07-09 13:19 UTC (permalink / raw)
  To: linux-admin

Hi,

I need to run /bin/mount and /sbin/mount.cifs commands as nobody user
(it has (bin/bash shell).

So, I've edited /etc/sudoers and added:

Cmnd_Alias    CMD_MOUNT = /bin/mount
Cmnd_Alias    CMD_CIFS ) = /sbin/mount.cifs

nobody           ALL = NOPASSWD: CMD_MOUNT
nobody           ALL = NOPASSWD: CMD_CIFS

But when I run the command as nobody (in the shell), I get the error:
"mount error 1 = Operation not permitted"

Any ideas ?

Any help would be appreciated.

Warm Regards,
Mário Gamito
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sudoers
       [not found] ` <4874BDED.9020402@excilys.com>
@ 2008-07-09 13:53   ` Mário Gamito
  0 siblings, 0 replies; 5+ messages in thread
From: Mário Gamito @ 2008-07-09 13:53 UTC (permalink / raw)
  To: nmaupu@excilys.com; +Cc: linux-admin

Hi,

Your command (sudo mount -t cifs ...) works running as root.
Problem is that I need to run it from PHP and in this way, it doesn't mount.

I have the ownership and permissions of the mount point set correctly.

As it is a dynamic application, the mount point always changes
(/mnt/user1, /mnt/user2, etc.), so, /etc/fstab is not an option :(

Any ideas ?

Warm Regards,
Mário Gamito

On Wed, Jul 9, 2008 at 2:32 PM, nmaupu@excilys.com <nmaupu@excilys.com> wrote:
> Mário Gamito a écrit :
>>
>> Hi,
>>
>> I need to run /bin/mount and /sbin/mount.cifs commands as nobody user
>> (it has (bin/bash shell).
>>
>> So, I've edited /etc/sudoers and added:
>>
>> Cmnd_Alias    CMD_MOUNT = /bin/mount
>> Cmnd_Alias    CMD_CIFS ) = /sbin/mount.cifs
>>
>> nobody           ALL = NOPASSWD: CMD_MOUNT
>> nobody           ALL = NOPASSWD: CMD_CIFS
>>
>> But when I run the command as nobody (in the shell), I get the error:
>> "mount error 1 = Operation not permitted"
>>
>> Any ideas ?
>
> Does mount point have nobody user/group permission ?
>
> sudo chown -R nobody:nobody /path/to/mount/point
> sudo mount -t cifs ...
>
> It is also possible to do that with user option directly in fstab which will
> not use root privileges to mount your fs.
>
> A+
> NM
>
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sudoers
  2008-07-09 13:19 sudoers Mário Gamito
       [not found] ` <4874BDED.9020402@excilys.com>
@ 2008-07-09 13:56 ` nmaupu
  1 sibling, 0 replies; 5+ messages in thread
From: nmaupu @ 2008-07-09 13:56 UTC (permalink / raw)
  To: linux-admin

Mário Gamito a écrit :
> Hi,
>
> I need to run /bin/mount and /sbin/mount.cifs commands as nobody user
> (it has (bin/bash shell).
>
> So, I've edited /etc/sudoers and added:
>
> Cmnd_Alias    CMD_MOUNT = /bin/mount
> Cmnd_Alias    CMD_CIFS ) = /sbin/mount.cifs
>
> nobody           ALL = NOPASSWD: CMD_MOUNT
> nobody           ALL = NOPASSWD: CMD_CIFS
>
> But when I run the command as nobody (in the shell), I get the error:
> "mount error 1 = Operation not permitted"
>
> Any ideas ?
Error, sending to the list, I resend message for everybody :

-----

Does mount point have nobody user/group permission ?

sudo chown -R nobody:nobody /path/to/mount/point
sudo mount -t cifs ...

It is also possible to do that with user option directly in fstab which 
will not use root privileges to mount your fs.

A+
NM

--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-09 13:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-09 13:19 sudoers Mário Gamito
     [not found] ` <4874BDED.9020402@excilys.com>
2008-07-09 13:53   ` sudoers Mário Gamito
2008-07-09 13:56 ` sudoers nmaupu
  -- strict thread matches above, loose matches on Subject: below --
2005-10-07 13:53 sudoers Andrzej Kaczmarczyk
2005-10-07 15:46 ` sudoers Andrzej Kaczmarczyk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.