- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: directory for script / logon/ ...etc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 05:36 AM
тАО09-15-2003 05:36 AM
directory for script / logon/ ...etc
I want to maak one directory to put al my script in. Those script i use to logon on the systeem.( username login, username logof ..etc.)
I want to use this directory for each user.Where i have to make this directory and what are the premissions i have to set.
thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 05:45 AM
тАО09-15-2003 05:45 AM
Re: directory for script / logon/ ...etc
dr-xr-xr-x 2 root sys 2048 Jul 14 10:04 /apps/bin/shared
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 05:48 AM
тАО09-15-2003 05:48 AM
Re: directory for script / logon/ ...etc
/usr/local/shared. Inside shared you will have bin, lib and doc dirs.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 06:37 AM
тАО09-15-2003 06:37 AM
Re: directory for script / logon/ ...etc
Can you be little more specific about making this directory. i'm not so good with unix. Do i have to do this:
mkdir /apps/
cd /apps
mkdir bin
cd bin
mkdir share
There i have to put al my script.
cd /
chmod 555 apps
is this correct ?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 07:15 AM
тАО09-15-2003 07:15 AM
Re: directory for script / logon/ ...etc
assuming there's enough space in the filesystem you decide to put this directory in (check by running 'bdf' - will tell you how much space is free in the filesystems).
Once you have enough space:
cd /whereyouwanttocreatedirectory
mkdir yourdirname
chmod 755 yourdirname
and you're sorted, the 7 allows the user (i.e. you) who created it to put scripts into the directory, the 5s give the group and other users read and execute permission on the directory.
e.g. you want to create a directory say /usr/local/scripts:
cd /usr/local
mkdir scripts
chmod 755 scripts
and your done.
hope that helps,
Kevin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 07:16 AM
тАО09-15-2003 07:16 AM
Re: directory for script / logon/ ...etc
assuming there's enough space in the filesystem you decide to put this directory in (check by running 'bdf' - will tell you how much space is free in the filesystems).
Once you have enough space:
cd /whereyouwanttocreatedirectory
mkdir yourdirname
chmod 755 yourdirname
and you're sorted, the 7 allows the user (i.e. you) who created it to put scripts into the directory, the 5s give the group and other users read and execute permission on the directory.
e.g. you want to create a directory say /usr/local/scripts:
cd /usr/local
mkdir scripts
chmod 755 scripts
and you're done.
hope that helps,
Kevin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 07:29 AM
тАО09-15-2003 07:29 AM
Re: directory for script / logon/ ...etc
Put your scripts in /usr/local/shared giving it 775 permissions. And maybe even include /usr/local/shared in their PATH stmt in their accounts. Or if everybody is going to need this then just include it in the PATH statement of /etc/profile.
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 07:37 AM
тАО09-15-2003 07:37 AM
Re: directory for script / logon/ ...etc
I would suggest not going with the home directories idea as this can lead to a maintenance nightmare if you have to make a change to several scripts - finding them is much easier if all your scripts end up in one location.
Pete
Pete