10 More Discussions You Might Find Interesting
1. HP-UX
Hi All,
I've tried starting syslogd on our hp-ux 11.31 server. However, it is not getting started nor it is updating the syslog file.
There is no space issue also. However, the mail.log file is approx 2GB, can that be of any issue. Please find the details below:
# /sbin/init.d/syslogd... (2 Replies)
Discussion started by: Kits
2 Replies
2. Shell Programming and Scripting
My git user has permission in sudoers to run a wrapper script to move files into my webroot.
Everything is working fine except for the chown line. After the script has run, the files ar still root:root instead of apache:apache.
Scratching my head...:confused:
#!/bin/sh
echo
echo "****... (4 Replies)
Discussion started by: dheian
4 Replies
3. Shell Programming and Scripting
Hi
I want export input data ...
echo "month: "
read m
export m=$m
also export m is not working ?
the month-variable should be exportet for the use in other scripts,
but it is not working like this. What i'm doing wrong?
Thanks in advance!
IMPe (10 Replies)
Discussion started by: IMPe
10 Replies
4. Shell Programming and Scripting
Hi.
I'm new to this forum, my English perhaps is not so good, but here is my question:
In bash you can use ] for tests, and how I understand it the variable names should be expanded automatically. So this should give "yes":
xx=hello
$ ] && echo yes || echo no
no # not giving "yes"
These two... (2 Replies)
Discussion started by: 244an
2 Replies
5. Shell Programming and Scripting
hi gurus.
I have a little script that runs java from a certain directory. This script runs fine when run manually but when I try to schedule it, it fails to find the script.
little_script.sh..
/<directory of java>/java -classpath... (3 Replies)
Discussion started by: MrCarter
3 Replies
6. Shell Programming and Scripting
awk 'BEGIN{print '1.2449'**0.5}'
awk: line 1: syntax error at or near *
can someone help me troubleshoot the above command?
i'm trying to do the square root of 1.2449. this command works on Red Hat, but for some reasonn isn't working on kubuntu (latest version).
shell is bash.
i... (3 Replies)
Discussion started by: SkySmart
3 Replies
7. Shell Programming and Scripting
Greetings all. :)
I would like to use sed to join all non-blank lines together in a particular file. I was thinking I could do this by simply replacing the terminating, new-line character on every line which is not blank, but I must be missing something in my sed line:
$ sed... (3 Replies)
Discussion started by: SteveB-in-LV
3 Replies
8. UNIX for Dummies Questions & Answers
#! /usr/tsch
foreach f (`cat contacts.list`)
awk '{printf ($2 in a) ? ","$5 : (NR>1) ? RS $2 FS $5 : $2 FS $5; a} END{print e}' $f > $f_inter.map
end
My file: cat contacts.list is just a list of files.
I get this error:
doit_contacts2intermap.sh: Command not found.
Thanks! (1 Reply)
Discussion started by: lost
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am trying to figure out which version I am running of sendmail, but I am buffed.
This is what I get
sendmail -d0.1 -bt < /dev/null
sendmail: illegal option -- d
Telneting to my host:
~]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is... (1 Reply)
Discussion started by: saariko
1 Replies
10. Solaris
Hi,
I was trying to use this particular option of grep
grep -r 'Search_pattern' *
This command should ideally search all the occurrences of Search_pattern recursively within a directory & print it on shell prompt. But this command is not doing what is expected. It just displays nothin!
... (8 Replies)
Discussion started by: harishmitty
8 Replies
DELUSER(8) System Manager's Manual DELUSER(8)
NAME
deluser, delgroup - remove a user or group from the system
SYNOPSIS
deluser [options] [--force] [--remove-home] [--remove-all-files] [--backup] [--backup-to DIR] user
deluser --group [options] group
delgroup [options] [--only-if-empty] group
deluser [options] user group
COMMON OPTIONS
[--quiet] [--system] [--help] [--version] [--conf FILE]
DESCRIPTION
deluser and delgroup remove users and groups from the system according to command line options and configuration information in
/etc/deluser.conf and /etc/adduser.conf. They are friendlier front ends to the userdel and groupdel programs, removing the home directory
as option or even all files on the system owned by the user to be removed, running a custom script, and other features. deluser and del-
group can be run in one of three modes:
Remove a normal user
If called with one non-option argument and without the --group option, deluser will remove a normal user.
By default, deluser will remove the user without removing the home directory, the mail spool or any other files on the system owned by the
user. Removing the home directory and mail spool can be achieved using the --remove-home option.
The --remove-all-files option removes all files on the system owned by the user. Note that if you activate both options --remove-home will
have no effect because all files including the home directory and mail spool are already covered by the --remove-all-files option.
If you want to backup all files before deleting them you can activate the --backup option which will create a file username.tar(.gz|.bz2)
in the directory specified by the --backup-to option (defaulting to the current working directory). Both the remove and backup options can
also be activated for default in the configuration file /etc/deluser.conf. See deluser.conf(5) for details.
If you want to remove the root account (uid 0), then use the --force parameter; this may prevent to remove the root user by accident.
If the file /usr/local/sbin/deluser.local exists, it will be executed after the user account has been removed in order to do any local
cleanup. The arguments passed to deluser.local are:
username uid gid home-directory
Remove a group
If deluser is called with the --group option, or delgroup is called, a group will be removed.
Warning: The primary group of an existing user cannot be removed.
If the option --only-if-empty is given, the group won't be removed if it has any members left.
Remove a user from a specific group
If called with two non-option arguments, deluser will remove a user from a specific group.
OPTIONS
--conf FILE
Use FILE instead of the default files /etc/deluser.conf and /etc/adduser.conf
--group
Remove a group. This is the default action if the program is invoked as delgroup.
--help Display brief instructions.
--quiet
Suppress progress messages.
--system
Only delete if user/group is a system user/group. This avoids accidentally deleting non-system users/groups. Additionally, if the
user does not exist, no error value is returned. This option is mainly for use in Debian package maintainer scripts.
--backup
Backup all files contained in the userhome and the mailspool-file to a file named /$user.tar.bz2 or /$user.tar.gz.
--backup-to
Place the backup files not in / but in the directory specified by this parameter. This implicitly sets --backup also.
--remove-home
Remove the home directory of the user and its mailspool. If --backup is specified, the files are deleted after having performed the
backup.
--remove-all-files
Remove all files from the system owned by this user. Note: --remove-home does not have an effect any more. If --backup is specified,
the files are deleted after having performed the backup.
--version
Display version and copyright information.
RETURN VALUE
0 The action was successfully executed.
1 The user to delete was not a system account. No action was performed.
2 There is no such user. No action was performed.
3 There is no such group. No action was performed.
4 Internal error. No action was performed.
5 The group to delete is not empty. No action was performed.
6 The user does not belong to the specified group. No action was performed.
7 You cannot remove a user from its primary group. No action was performed.
8 The required perl-package 'perl modules' is not installed. This package is required to perform the requested actions. No action was
performed.
9 For removing the root account the parameter "--force" is required. No action was performed.
FILES
/etc/deluser.conf
SEE ALSO
deluser.conf(5), adduser(8), userdel(8), groupdel(8)
COPYRIGHT
Copyright (C) 2000 Roland Bauerschmidt. Modifications (C) 2004 Marc Haber and Joerg Hoh. This manpage and the deluser program are based on
adduser which is:
Copyright (C) 1997, 1998, 1999 Guy Maor.
Copyright (C) 1995 Ted Hajek, with a great deal borrowed from the original Debian adduser
Copyright (C) 1994 Ian Murdock. deluser is free software; see the GNU General Public Licence version 2 or later for copying conditions.
There is no warranty.
Debian GNU/Linux Version 3.113+nmu3 DELUSER(8)