Sponsored Content
Operating Systems HP-UX Problems creating and accessing with user Post 303002037 by jim mcnamara on Wednesday 16th of August 2017 02:16:31 PM
Old 08-16-2017
The user group zero is reserved for privileged accounts, namely root. And you have to be root to use the userdel command. That is the direct cause of the error, I think.

I'm not sure how to fix your problem. When you need special privileges for a user there are special tools like sudoer (sudo), which allows you to give good control over what the user can and cannot do. Do not fiddle around with reserved group numbers like that.
 

9 More Discussions You Might Find Interesting

1. SuSE

SUSE 9 - problems accessing CD ROM drive

I've got SUSE 9 installed on a removable hard drive and the system is up and running fine. I'm trying to copy stuff off a CD onto one of my Linux partitions but I am getting an errors : * Could not read /media/cdrom/file1.tar.tar I can browse to the file location on the CD by using the... (11 Replies)
Discussion started by: GandalfWhite
11 Replies

2. UNIX for Dummies Questions & Answers

Limit number of user accessing to SCO UNIX System

Hi, In my company, we are using SCO UNIX system and Informix database. Recently, there have been a lot of users accessing to server and sometimes it has made server run very slow. So, I intend to limit number of users of 30 only. Although I have tried to search on the Internet for several days,... (1 Reply)
Discussion started by: trinhnguyen
1 Replies

3. AIX

Limiting length of user in while creating user

Hi all, I am a newbe to aix 5.2. I want to specify the characters used by users while creating user in aix like specifying the length of the password should i use some sript for that if it is then please let me know how to do this if yes give me the link for the scripts. Thanks in advance ... (2 Replies)
Discussion started by: Satya Mishra
2 Replies

4. AIX

NIM Problems creating a mksysb_resource

Has anyone run into issues creating a mksysb_resource via NIM? We get the following messages 0042-001 nim: processing error encountered on "master": 0042-006 m_mkbosi: (From_Master) connect A remote host refused an attempted connect operation. This happens on the LPARs on the same... (4 Replies)
Discussion started by: pdtak
4 Replies

5. Linux

Sabayon - KDE4.2 Problems accessing system management - all greyed out

I have just loaded Sabayon KDE4.2. I have a 64bit comp and have tried several Linux/Unix os and have had problems with all of them and now it seems this one as well. I can't load my printer up and I cannot access any login management. I have had trouble accessing my Login Manager. I have looked... (3 Replies)
Discussion started by: Tony_photoplus
3 Replies

6. Shell Programming and Scripting

[SSH] Accessing remote directory with user-passed path

Hi everybody, Currently, I have a script which access a remote computer via SSH, go to a folder already defined in the code and then executes a program in it, just like that: ssh user@host << EOI cd path ./file EOI It executes fine, but now I want to pass an argument in the command... (2 Replies)
Discussion started by: lgb3
2 Replies

7. Shell Programming and Scripting

Creating Frequency of words from a file by accessing a corpus

Hello, I have a large file of syllables /strings in Urdu. Each word is on a separate line. Example in English: be at for if being attract I need to identify the frequency of each of these strings from a large corpus (which I cannot attach unfortunately because of size limitations) and... (7 Replies)
Discussion started by: gimley
7 Replies

8. UNIX for Beginners Questions & Answers

Accessing the user space of one OS from within another.

Recently, I setup a dual boot on this PC. I can currently jump from Ubuntu 12.04 and 16.04. What I would like to be able to do is access the home directory of my 16.04 OS from within the 12.04, is that possible? I can mount the partition of the hard drive where 16.04 lives from within 12.04 but it... (4 Replies)
Discussion started by: Circuits
4 Replies

9. UNIX for Advanced & Expert Users

Prevent user from creating new user from his login

Hi Experts, Need your support Redhat 6.5 I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies
privbind(1)															       privbind(1)

NAME
privbind - allow an unprivileged application to bind with reserved ports. SYNOPSIS
privbind -u user [ -g group] [ -n num] [ -l path] command [ arguments ... ] DESCRIPTION
Normally in Linux, only a superuser process can bind an Internet domain socket with a reserved port (port numbers less than 1024). Accord- ingly, server processes are typically run with superuser privileges, which can be dropped after binding the reserved port. privbind can execute an application as an unprivileged user with just one extra privilege: it can bind to reserved ports. privbind is useful in several situations. It can be used when the application is not trusted enough; It can be used when the server is written in a language without the setuid(2) feature (e.g., Java(TM)); It can also be used to run applications which don't manipulate their own user id and need to be able to bind to a reserved port without needing any other root privileges. OPTIONS
-u The -u option is mandatory, and specifies under which user to run the given command. The user can be specified using either a user- name or a numeric user id. It should be an unprivileged (non-root) user. -g Specifies the group to switch to when running the given command. If this option is missing, then the given user's default group is used. -n privbind's default behaviour is to allow the application to call bind(2) with reserved ports an unlimited number of times. In order to do that (see "HOW IT WORKS" below), the privbind helper process needs to wait for the application to exit before it terminates. The -n num option tells privbind that it can assume that only num binds need to be given elevated privileges. After this number of bind(2) calls have been executed, privbind's helper process will exit, leaving behind only the unprivileged application running. -l Mostly for internal use during build. Gives the explicit path to the LD_PRELOAD library. -h Shows a short help screen, and exits. EXIT STATUS
Using technical jargon, privbind execs command as its main process, running itself in the background (as a child of the application's process). The practical upshot of this, in layman's terms, is that the user never sees privbind's exit status. When running privbind, the process will exit whenever, and with whatever exit status, command does. The above point should be particularly noted when using privbind to run daemons. SECURITY CONSIDERATIONS
privbind has no SUID parts, and runs within the confines of a single process. This serves to minimize the security implications of using it. It is strongly advised that privbind not be made SUID, as this would allow any user that can run it to run any process as any other (non-root) user. At the moment privbind detects such a situation and warns about it, but will continue with the execution. HOW IT WORKS
In a nutshell, privbind works by starting two processes. One drops privileges and runs (exec(2)) the command, the other remains as root. Privbind makes sure to keep a unix domain socket connecting the two processes. Privbind uses LD_PRELOAD to intercept every call to bind(2) made by the program. Calls that can be completed non-privileged are done so. Calls that require root privileges are forwarded to the root process, that carry them out on the program's behalf. A more detailed explanation is available in the README file. BUGS
privbind currently uses "SOCK_SEQPACKET" for communication between privileged and non-privileged processes. This socket type is only imple- mented on Linux kernel 2.6.4 and later, which makes privbind none portable to older Linux kernels and many other non-Linux platforms. VERSION
The version of privbind described by this manual page is 1.0 (June 12, 2007) COPYRIGHT
Copyright (C) 2006-2007, Shachar Shemesh plus others. See the AUTHORS file. privbind was written by Shachar Shemesh, with contributions from Amos Shapira and Nadav Har'El. privbind is free software, released under the GNU General Public License (GPL). See the COPYING file for more information and the exact license terms. The latest version of this software can be found in http://sourceforge.net/projects/privbind Java is a registered trademark of Sun Microsystems. SEE ALSO
su(1), sudo(8), capabilities(7), bind(2), setuid(2), ld.so(8), unix(7) Privbind 0.1 22 May 2007 privbind(1)
All times are GMT -4. The time now is 03:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy