11-20-2001
Re: mount
Quote:
Originally posted by aries
I trie using the suid and sgid but am still blocked
With most kernels, suid and sgid do not work with shell scripts. So I agree with doeboy that you are going to need to use sudo to run your script.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi...
question is this:
How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure.
... (4 Replies)
Discussion started by: soulshaker
4 Replies
2. UNIX for Dummies Questions & Answers
Hey, need to mount the following below, and new ish to unix.. what is the process.. thanks :b:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SEAGATE-ST973401LC-0001 cyl 51057 alt 2 hd 4 sec 702>
/pci@1d,700000/scsi@4/sd@0,0 (5 Replies)
Discussion started by: blb
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
We encountered NFS issue (solaris) especially running on Oracle application. Problem such as forms hang when close button is click, concurrent job shows running status all time.
Understand we need to use mount -o llock -F nfs instead of mount -F nfs to eliminate? this problem..
Can... (1 Reply)
Discussion started by: KhawHL
1 Replies
4. Shell Programming and Scripting
Hi all,
I would like to know how to use the format command?
I mean i essentially want to mount my windows drives here...
For which i needed to know there readings!!!
When i tried to do format i was offered one disk(obviously),that was
c1d0
i selected that...
and choose partitions (twice... (1 Reply)
Discussion started by: wrapster
1 Replies
5. UNIX for Advanced & Expert Users
I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access. # mount -t cifs //servername/sharename /mnt/temp -o password=""
mount error 13 = Permission denied Refer to the... (3 Replies)
Discussion started by: humbletech99
3 Replies
6. IP Networking
Hello,
I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;)
Below are the configs
/etc/exports on host
/home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies
7. UNIX for Dummies Questions & Answers
Hey guys,
i have a computer (from a friend) with win xp home. now he can not boot the system and i want to try to fix it. I don't know what he did but windows says all the time "hal.dll is missing" and so on...
I tried windows restore and helping cons but it's not working.
Now I try to work... (2 Replies)
Discussion started by: puthy
2 Replies
8. UNIX for Dummies Questions & Answers
Hi guys.
I read the man page for mount command but i didn't understand
why we use -o option. could someone help?:D (1 Reply)
Discussion started by: majid.merkava
1 Replies
9. Shell Programming and Scripting
Heyas
At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it.
EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...).
Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies
10. UNIX for Beginners Questions & Answers
How to create a new mount point with 600GB and add 350 GBexisting mount point
Best if there step that i can follow or execute before i mount or add diskspace IN AIX
Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies
LEARN ABOUT FREEBSD
setresuid
SETRESUID(2) BSD System Calls Manual SETRESUID(2)
NAME
getresgid, getresuid, setresgid, setresuid -- get or set real, effective and saved user or group ID
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
int
getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
int
getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
int
setresgid(gid_t rgid, gid_t egid, gid_t sgid);
int
setresuid(uid_t ruid, uid_t euid, uid_t suid);
DESCRIPTION
The setresuid() system call sets the real, effective and saved user IDs of the current process. The analogous setresgid() sets the real,
effective and saved group IDs.
Privileged processes may set these IDs to arbitrary values. Unprivileged processes are restricted in that each of the new IDs must match one
of the current IDs.
Passing -1 as an argument causes the corresponding value to remain unchanged.
The getresgid() and getresuid() calls retrieve the real, effective, and saved group and user IDs of the current process, respectively.
RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the
error.
ERRORS
[EPERM] The calling process was not privileged and tried to change one or more IDs to a value which was not the current real ID,
the current effective ID nor the current saved ID.
[EFAULT] An address passed to getresgid() or getresuid() was invalid.
SEE ALSO
getegid(2), geteuid(2), getgid(2), getuid(2), issetugid(2), setgid(2), setregid(2), setreuid(2), setuid(2)
HISTORY
These functions first appeared in HP-UX.
BSD
February 7, 2015 BSD