Gentoo Archives: gentoo-user

From: Arnau Bria <arnau@×××××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] sudoers syntax questions
Date: Fri, 22 May 2009 09:12:06
Message-Id: 20090522111212.2e81de13@lx-arnau.pic.es
1 Hi all,
2
3 I'd like to allow some users to umount any dir under certain path, but
4 as man says:
5
6 When you specify a directory in a Cmnd_List, the user will be able to
7 run any file within that directory (but not in any subdirectories
8 therein)
9
10 so, If I'd like to allow certain user to run umount
11 under /nfs/user_dir/, how may I do that with sudo?
12
13 I tried:
14 %user ALL= NOPASSWD: /bin/umount /nfs/user/*
15
16 so, if he wants to umount /nfs/user/path_1/path_2/mount_point
17 he could..
18
19
20 but it does not work.
21
22
23 Any idea will be appreciated.
24
25 Cheers,
26 --
27 Arnau Bria
28 http://blog.emergetux.net
29 Bombing for peace is like fucking for virginity

Replies

Subject Author
Re: [gentoo-user] sudoers syntax questions Dirk Heinrichs <dirk.heinrichs@××××××.de>