Sponsored Content
Full Discussion: su permission
Top Forums UNIX for Dummies Questions & Answers su permission Post 22861 by siavoush on Wednesday 12th of June 2002 02:56:40 AM
Old 06-12-2002
su Running with insufficient privilege.

Dear Forum,

I have changed the permission for su and now it looks like this:

-rwxr-xr-x 1 root sys 44368 Jan 25 2001 /sbin/su*

I am also a member of system and have been granted all privileges. However, when I am logged in as myself, I get the following message:

Running with insufficient privilege.

Any help much appreciated.

Cheers,
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

permission help

Ok heres the situation I've been studying Solaris 8 for about 6 months now and some things click in my head but others don't. One of the things that don't click are file permissions. For example I login at work and I use the ls -l command to get a long listing of the files w/ the permissions.... (2 Replies)
Discussion started by: eloquent99
2 Replies

2. UNIX for Dummies Questions & Answers

permission

Is it possible to set owner to a group? I need to have a group own a process, because there will be 3 diffrent persons that will start and stop this process. They can not use the same users cause och back logging. we need to know who end when a certian user start/stops processes. (1 Reply)
Discussion started by: dozy
1 Replies

3. UNIX for Dummies Questions & Answers

Permission?

What does the following permission indicate? -rwSr----- 1 oracle dba 1536 Nov 7 17:05 orapwRTMDB Thanks, Rahul. (1 Reply)
Discussion started by: rahulrathod
1 Replies

4. UNIX for Dummies Questions & Answers

File Permission

Hi, When I listed one directory in Sun, it showed that : -rwsr-xr-x 1 root bsmbin 78004 Oct 21 2004 bsmprsm I don't know meaning of the character "s" in "rws" above. I have searched in Sun admin documents but no result. Would you please explain it ? :) Thank you so much. (1 Reply)
Discussion started by: msg098
1 Replies

5. UNIX for Dummies Questions & Answers

User permission

Hi all, I created testuser. by following command. /usr/sbin/adduser -n test -d /disk05/collections/GET/testdata/ and then set its password by following command. passwd testuser When I login to system by testuser, it enters everything is ok. The problem is how to set permission to this... (3 Replies)
Discussion started by: mr_bold
3 Replies

6. Ubuntu

Permission (I Think)

Pictures by worthamtx - Photobucket The URL is graphic view my present concern. Old partition working great sdb1 both appear on nautilus, both deliver icons to desk top. Based on the label handling of gparted results I tried following with success sudo mkdir /media/disk/data sudo chown... (1 Reply)
Discussion started by: 77yrold
1 Replies

7. UNIX for Dummies Questions & Answers

Permission

Hello Whenever we want to oen any type of file by name, we must have execute perm. in each dir. mentioned in the name. I changed the dir permission using chmod to test the validity of this statement. but i still can open the file ------- any guides would be appreciable (2 Replies)
Discussion started by: dr_mabuse
2 Replies

8. UNIX for Dummies Questions & Answers

really need help with permission changes

I dont understand why permission changes are being such a pain in the bum even after I manually changed them through properties....Anyone know what to do here because even thoguh in properties the permissions make me local admin over in the Cygwin its not working.. ... (5 Replies)
Discussion started by: okhawaja
5 Replies

9. Linux

Permission denied

I am using korn shell When I type in Telnet on cmd line, I get message "cannot execute" How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies

10. Ubuntu

Permission denied

Trying to get date into the txt file. It says Permission denied. echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt exec 2>> /tmp/systemd_suspend_test_err.txt if ; then # Do the thing you want before suspend here echo "we are suspending $(date +%I:%M:%S_%D)." elif ;... (5 Replies)
Discussion started by: drew77
5 Replies
PRIV(9) 						   BSD Kernel Developer's Manual						   PRIV(9)

NAME
priv -- kernel privilege checking API SYNOPSIS
#include <sys/priv.h> int priv_check(struct thread *td, int priv); int priv_check_cred(struct ucred *cred, int priv, int flags); DESCRIPTION
The priv interfaces check to see if specific system privileges are granted to the passed thread, td, or credential, cred. This interface replaces the now removed suser(9) privilege checking interface. Privileges typically represent rights in one of two categories: the right to manage a particular component of the system, or an exemption to a specific policy or access control list. The caller identifies the desired privilege via the priv argument. The optional flags argument, flags, is currently unused. Privilege Policies Privileges are typically granted based on one of two base system policies: the superuser policy, which grants privilege based on the effec- tive (or sometimes real) UID having a value of 0, and the jail(2) policy, which permits only certain privileges to be granted to processes in a jail. The set of available privileges may also be influenced by the TrustedBSD MAC Framework, described in mac(9). IMPLEMENTATION NOTES
When adding a new privilege check to a code path, first check the complete list of current privileges in sys/priv.h to see if one already exists for the class of privilege required. Only if there is not an exact match should a new privilege be added to the privilege list. As privilege numbers becomes encoded in the kernel module ABI, privilege constants must not be changed as any kernel modules depending on privi- leges will then need to be recompiled. When adding a new privilege, be certain to also determine whether it should be listed in prison_priv_check(), which includes a complete list of privileges granted to the root user in jail(2). Certain catch-all privileges exist, such as PRIV_DRIVER, intended to be used by device drivers, rather than adding a new driver-specific privilege. RETURN VALUES
Typically, 0 will be returned for success, and EPERM will be returned on failure. Most consumers of priv will wish to directly return the error code from a failed privilege check to user space; a small number will wish to translate it to another error code appropriate to a spe- cific context. When designing new APIs, it is preferable to return explicit errors from a call if privilege is not granted rather than changing the seman- tics of the call but returning success. For example, the behavior exhibited by stat(2), in which the generation field is optionally zero'd out when there is insufficient privilege is highly undesirable, as it results in frequent privilege checks, and the caller is unable to tell if an access control failure occurred. SEE ALSO
jail(2), mac(9), ucred(9) AUTHORS
The priv API and implementation were created by Robert Watson under contract to nCircle Network Security, Inc. BSD
August 30, 2006 BSD
All times are GMT -4. The time now is 04:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy