03-10-2018
Methinks you have a syntax error in the
Cmnd_Alias as the Cmnd_List should be comma delimited, but the actual reason for your "error" is that you're running the
passwd command as
root.
man su:
Quote:
Invoked without a username, su defaults to becoming the superuser.
Last edited by RudiC; 03-10-2018 at 10:19 AM..
This User Gave Thanks to RudiC For This Post:
9 More Discussions You Might Find Interesting
1. Linux
wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies
2. Shell Programming and Scripting
Hi,
I need to provide execute access to certain users and not to all users
For ex: if ther is a file /home/august/aug.sh.
and there are user's like jan,feb,mar,april,May and jan is the owner of that box. I need to provide execute access to feb and mar only. I also know the root pwd for... (3 Replies)
Discussion started by: Ashok_oct22
3 Replies
3. UNIX for Dummies Questions & Answers
hi
i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help
Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies
4. Linux
How to create a user account on a Linux desktop machine with restrictions on connecting to the LAN, WAN, PCMCIA ports, Firewire, CDROM and generally any user controllable output options?
I have the task to set up a machine for users working with sensitive data that should not be leaving the... (1 Reply)
Discussion started by: netfreighter
1 Replies
5. UNIX for Dummies Questions & Answers
I'm actually working with a Ubuntu-System here and have a question about executing a command with 'sudo'.
I tried and got a error message like "not allowed".
After this I logged in with 'sudo -s' and typed the command without 'sudo'. This worked well.
Can please somebody explain me this... (0 Replies)
Discussion started by: daWonderer
0 Replies
6. SuSE
I access over 100 SUSE SLES servers as root from my admin server, via ssh sessions using ssh keys, so I don't have to enter a password. My SUSE Admin server is setup in the following manner:
1) Remote root access is turned off in the sshd_config file.
2) I am the only user of this admin... (6 Replies)
Discussion started by: dvbell
6 Replies
7. Red Hat
I have a set of RHEL 5 boxes running our ERP software on Oracle databases. I need to allow my DBA's to su to oracle and one other account (banner) without knowing the oracle or banner password. But I need to prevent them from su'ing to any other user especially root. I only want them to be able to... (1 Reply)
Discussion started by: westmoreland
1 Replies
8. UNIX for Beginners Questions & Answers
Hi,
Is there any safe method to provide read access to root's crontab to another user? Just read no other permissions. (1 Reply)
Discussion started by: ctrld
1 Replies
9. Solaris
Hello,
It is Solaris-10. There is a file as /opt/vpp/dom1.2/pdd/today_23. It is always generated by root, so owned by root only.
This file has to be deleted as part of application restart always and that is done by app_user and SA is always involved to do rm on that file.
Is it possible to give... (9 Replies)
Discussion started by: solaris_1977
9 Replies
LEARN ABOUT DEBIAN
viewsudo
VIEW-OS(1) General Commands Manual VIEW-OS(1)
NAME
viewsudo - execute a command as another (virtual) user
SYNOPSIS
viewsudo [-g groupname|#gid] [-u username|#uid] command
DESCRIPTION
viewsudo allows a user to execute a command as the superuser or
another user in View-OS.
OPTIONS
viewsudo accepts the following command line options:
-g group
Normally, viewsudo sets the primary group to root. The -g option causes sudo to run the specified command with the primary group set
to group. To specify a gid instead of a group name, use #gid. When running commands as a gid, many shells require that the '#' be
escaped with a backslash ('[u2019]). If no -u option is specified, the command will be run as the invoking user (not root). In
either case, the primary group will be set to group.
-u user
The -u option causes viewsudo to run the specified command as a user other than root. To specify a uid instead of a user name, use
#uid. When running commands as a uid, many shells require that the '#' be escaped with a backslash ('[u2019]).
RETURN VALUES
Upon successful execution of a program, the exit status from viewsudo will simply be the exit status of the program that was executed.
SEE ALSO
viewsu(1), sudo(1), linux.defs(5)
AUTHORS
View-OS is a project of the Computer Science Department, University of Bologna. Project Leader: Renzo Davoli.
<http://www.sourceforge.net/projects/view-os>
Howto's and further information can be found on the project wiki <wiki.virtualsquare.org>.
NOTE
Most part of the text is taken from sudo(1).
VIEW-OS: a process with a view August 8, 2009 VIEW-OS(1)