02-05-2002
You cannot take preserve certain permissions (such as root) as a non root user. There are numerous security reasons for this limitation for non-privileged users in a multi-user enviroment such as UNIX.
10 More Discussions You Might Find Interesting
1. SCO
I am a 10 years windows person with basic unix training (very basic).
I have a sco server where it originally had 3 physical drives. Drive 0 had to be replaced so I did that but because I am really new to Unix I was afraid to detroy the data on DRIVE 1 and 2, so I took them out when I loaded the... (3 Replies)
Discussion started by: mhenry
3 Replies
2. UNIX for Dummies Questions & Answers
I am adding some individual files to a tar archive and would like them to be added to the archive without any directory hierarchy, even though the files themselves exist in levels of hierarchy. Unfortunately, tar seems to always preserve the directory hierarchy when it adds the files.
Here is... (2 Replies)
Discussion started by: Special_K
2 Replies
3. Shell Programming and Scripting
I obviously haven't learned my lesson with shell and whitespace.
find /path/to/some/where/ -name "*.pdf" | awk '{print $5}'| uniq -d
results:
some Corporation
other Corporate junk
firmx
Works fine from cmdline but the whitespace turns into another FS in a for loop.
for... (7 Replies)
Discussion started by: s_becker
7 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
5. Debian
I'm trying to get a number of old disks on HP-UX 10.2 copied over to a new Debian machine which has a NAS on it.
The HP does not have rsync, but does have scp. Scp unfortunately does not always preserve permissions, and does not save links which were on the disk.
Apparently rsync has a flag... (3 Replies)
Discussion started by: PasadenaDave
3 Replies
6. HP-UX
I'm trying to get a number of old disks on HP-UX 10.2 copied over to a new Debian machine which has a NAS on it.
The HP does not have rsync, but does have scp. Scp unfortunately does not always preserve permissions, and does not save links which were on the disk.
Apparently rsync has a flag... (2 Replies)
Discussion started by: PasadenaDave
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am not one of the super users / root for AIX 5.3 system.
There is a filesystem
Say
/DIR1 and its has several subdirs in it say SUBDIR1, SUBDIR2, SUBDIR3.
Can I create a tar file for all files under DIR1 and SUBDIR1, SUBDIR3. Excluding SIBDIR2?
Also how can I preserve... (2 Replies)
Discussion started by: Hangman2
2 Replies
8. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
9. Shell Programming and Scripting
Below is the issue I am having.
I have a few variables which have certain values in them like
var1=23
var2=46
var3=78 etc...
I want to save these values with the help of a for loop in a single variable so that I can use it later,beacuse a few lines down the script, some of these... (3 Replies)
Discussion started by: Elizabeth H
3 Replies
10. Shell Programming and Scripting
Hi I am running this shell script .But some how the flag value is getting reset to 0 .could you please help .I'm pasting the output of the script also for your reference.
#!/usr/bin/sh
# Shell script to monitor or watch the disk space
# It will send an email to $ADMIN, if the (free... (5 Replies)
Discussion started by: ptappeta
5 Replies
LEARN ABOUT DEBIAN
sbuild-adduser
SBUILD-ADDUSER(8) Debian sbuild SBUILD-ADDUSER(8)
NAME
sbuild-adduser - add an sbuild user
SYNOPSIS
sbuild-adduser [-h|--help | -V|--version] USER1 [USER2 [USERn...]]
DESCRIPTION
sbuild-adduser adds the specified users to the sbuild group, granting them the privelege to build packages with sbuild(1). The schroot(1)
configuration must permit the user to obtain root permissions in the chroot via the root-users and root-groups options in schroot.conf,
because this is required to install and remove build-dependencies inside the chroot. This is normally done using the sbuild group, but
additional users or groups may be added in order to grant finer-grained permissions, for example to restrict individual users to particular
chroots.
OPTIONS
Actions
-h, --help
Display this manual.
-V, --version
Print version information.
User selection
USER The user to be granted sbuild access.
EXAMPLES
To allow user rleigh sbuild access:
% sudo sbuild-adduser rleigh
AUTHORS
Roger Leigh.
COPYRIGHT
Copyright (C) 2006-2008 Roger Leigh <rleigh@debian.org>.
SEE ALSO
sbuild(1), sbuild-setup(7), schroot.conf(5).
Version 0.63.2 18 Aug 2012 SBUILD-ADDUSER(8)