02-10-2005
.....
you could use a variable for your "main" path like:
MAIN=/home/proj/module/
$MAIN/blabla.sh
$MAIN/2nd-dir/blabla2.sh
gP
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Can you please help ? I work on SCO Unix Open server Rel. 5.
User root on Unix can change/view/modify any files belonging to any user on a file system.
Is there any way where I can prevent non-root users to change thier directories to other non-root users area.
for eg. There are 2 users... (3 Replies)
Discussion started by: taher_n
3 Replies
2. Programming
hi,
I'm doing to some simple socket programming.
I have a client that connects to the server and request stuff.
For example, if the client type in "ls", that command will be sent to the server and the server will send back the ls information the client requested. Similarly, if the client type... (1 Reply)
Discussion started by: bb00y
1 Replies
3. Red Hat
I recently activated tripwire on my redhat 9 box.
Tripwire reports that the time and date of the directory /root is being modified. Also the file inside root called .viminfo is also changing checksum and being modified.
I tried to google some answers but had no luck so far.
Is this normal... (1 Reply)
Discussion started by: Alux
1 Replies
4. Windows & DOS: Issues & Discussions
Just installed SFU in my PC running under Windows XP Pro. Could someone tell us how to change directory and to its subdirectories either by Korn Shell or C Shell?
I tried, cd f:\ or chdir f:\ but it didn't work. (1 Reply)
Discussion started by: ilak1008
1 Replies
5. Shell Programming and Scripting
Hello All:
I have an LDAP server that is used for authentication. Now the home directory id set to : /export/home/user1 . But I am logging in to different machines Solaris, Linux. The problem is I want the home directory to change depending on the os version (e.g. /export/home/user1/linux). Can... (1 Reply)
Discussion started by: disturbe_d
1 Replies
6. UNIX for Dummies Questions & Answers
I thought this was as easy as a piece of cake. But it has had me spinning. Here is how my script looks like:
When the script finishes and I pwd, I am back to square one. Any help? Thanks in advance.
HP-UX hostname B.11.23 U ia64 3308722091 unlimited-user license (5 Replies)
Discussion started by: ron_it_guy
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am in /home/development/project/abc directory. Now I want to remove one file which is kept in /trial/dev/<file> directory.
I would like to do it in one command.
I tried changing directory in one command like:
pwd
/home/development/project/abc
cd ~/trial/dev/
bash: no command... (2 Replies)
Discussion started by: palak08
2 Replies
8. UNIX for Dummies Questions & Answers
Hi, Im getting this annoying problem on file permission when I copy a folder to a mounted external directory. the files inside the copied folders become all executable. I tried to search for ways how to undo the permission over the web but to no avail.
tried this one but it doesnt change a... (2 Replies)
Discussion started by: ida1215
2 Replies
9. Shell Programming and Scripting
Hi guys,
I have lots of files that look like:
ABC.packed.dir
DEF.packed.dir
GHI.packed.dir
etc...
I would like them to have more of the usual naming convention
ABC
DEF
GHI
etc...
so I was thinking that I could: (2 Replies)
Discussion started by: atjurhs
2 Replies
10. Shell Programming and Scripting
Hi could some let me know how to prevent user from changing his home directory.......
Thanks in advance.... (1 Reply)
Discussion started by: Revanth547
1 Replies
LEARN ABOUT PHP
idmap_rid
IDMAP_RID(8) System Administration tools IDMAP_RID(8)
NAME
idmap_rid - Samba's idmap_rid Backend for Winbind
DESCRIPTION
The idmap_rid backend provides a way to use an algorithmic mapping scheme to map UIDs/GIDs and SIDs. No database is required in this case
as the mapping is deterministic.
IDMAP OPTIONS
range = low - high
Defines the available matching uid and gid range for which the backend is authoritative. Note that the range acts as a filter. If
algorithmically determined UID or GID fall outside the range, they are ignored and the corresponding map is discarded. It is intended
as a way to avoid accidental UID/GID overlaps between local and remotely defined IDs.
base_rid = INTEGER
Defines the base integer used to build SIDs out of a UID or a GID, and to rebase the UID or GID to be obtained from a SID. This means
SIDs with a RID less than the base rid are filtered. The default is not to restrict the allowed rids at all, i.e. a base_rid value of
0. A good value for the base_rid can be 1000, since user RIDs by default start at 1000 (512 hexadecimal).
Use of this parameter is deprecated.
THE MAPPING FORMULAS
The Unix ID for a RID is calculated this way:
ID = RID - BASE_RID + LOW_RANGE_ID.
Correspondingly, the formula for calculating the RID for a given Unix ID is this:
RID = ID + BASE_RID - LOW_RANGE_ID.
EXAMPLES
This example shows how to configure two domains with idmap_rid, the principal domain and a trusted domain, leaving the default id mapping
scheme at tdb. The example also demonstrates the use of the base_rid parameter for the trusted domain.
[global]
security = domain
workgroup = MAIN
idmap backend = tdb
idmap uid = 1000000-1999999
idmap gid = 1000000-1999999
idmap config MAIN : backend = rid
idmap config MAIN : range = 10000 - 49999
idmap config TRUSTED : backend = rid
idmap config TRUSTED : range = 50000 - 99999
idmap config TRUSTED : base_rid = 1000
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
Samba 3.5 06/18/2010 IDMAP_RID(8)