- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ksh : permission denied on mounted directory
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
Forums
Discussions
Discussions
Forums
Discussions
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
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
11-12-2006 08:14 PM
11-12-2006 08:14 PM
We have the following Unix-version : B.11.23.
I have the following problem. I made a directory /mnt/appserv and
mounted it on a windows server. The line in /etc/fstab to do this is the following :
winoracle:/environments10g /mnt/appserv cifs defaults 0 0
I have mounted this dir as root-user.
The rights on the directory are the following :
drwxrwxrwx 2 root sys 131072 Nov 13 09:54 appserv
When I log in as user 'oracle' and when I try to access this directory I get
the following :
ksh : appserv : permission denied
I am pretty new to Unix.
What am I missing here ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2006 08:45 PM
11-12-2006 08:45 PM
Re: ksh : permission denied on mounted directory
Permissions on the base filesystem
(that is where the physical files reside)
are not superseded because you mounted
a local directory as root !!
The permission need to be correctly set at
the filesystem before you mounted it.
Also it is worth
checking on Windows how permissions
and access lists are exported.
On unix it is done thru
exportfs -a
based on your /etc/exports file.
Otherwise post the contents of this
equivalent windows file here , so
we can check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2006 09:00 PM
11-12-2006 09:00 PM
Re: ksh : permission denied on mounted directory
Can you describe how you setup this share?
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2006 09:32 PM
11-12-2006 09:32 PM
Re: ksh : permission denied on mounted directory
From HP-Unix I can access the directory as root, but not as user 'oracle'.
To mount I did the following :
- I made a new directory : /mnt/appserv and
with chmod I gave it the maximum of
permissions.
- I added a line in /etc/fstab :
'winoracle:/environments10g /mnt/appserv
cifs defaults 0 0'
The pasword for the server is in the file
cifsclient (in /sbin/init.d) :
'/opt/cifsclient/bin/cifslogin -U
username winoracle -P pasword'
- I issued the following : mount -aF cifs
as root-user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2006 09:48 PM
11-12-2006 09:48 PM
Re: ksh : permission denied on mounted directory
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2006 10:45 PM
11-12-2006 10:45 PM
Re: ksh : permission denied on mounted directory
Here's the answere to your query:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1056700
Also instead of using the mount_cifs(1M), can you try the cifsmount and the cifslogin commands?
For CIFS problem, I normally search the responses posted by Eric Raeburn for quick resolutions. :)
HTH,
Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2006 11:30 PM
11-12-2006 11:30 PM
Re: ksh : permission denied on mounted directory
Sanjay, The link you provided wasn't useful to me because I can actualy mount the directory, but I only have access as the root-user.
Yang, Is there any way to check these samba-users ? I have tried the smbpasswd command to add the oracle-user but I can't execute the command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 02:39 AM
11-13-2006 02:39 AM
SolutionIf you do not have an account for "oracle" on winoracle, you can still try the following:
1. logon as oracle
2. run "cifslogin -s winoracle
3. try to access /mnt/appserv again
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 06:10 PM
11-13-2006 06:10 PM
Re: ksh : permission denied on mounted directory
This is working ! Can you tell me
how to automize this, so that when the
server restarts the mounts are automatically ok. Or do you always have to do this manually ?
Regards,
Brecht
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 06:24 PM
11-13-2006 06:24 PM
Re: ksh : permission denied on mounted directory
su - oracle -c "cifslogin -s winoracle
You may still need cifslogin you configured in /sbin/init.d for root because the share will be mounted by root.
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 06:29 PM
11-13-2006 06:29 PM
Re: ksh : permission denied on mounted directory
Thank you,
Brecht
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 09:24 PM
11-13-2006 09:24 PM
Re: ksh : permission denied on mounted directory
Thanks !