Access Denied

Hi All,

I have a root access for one of the server. But, when i try to cd one particular directory i will get the access denied message. Even though that particular directory is created under root. What would be the cause for this? I really wonder if any one have answer for my question.........:frowning:

Thanks in Advance,
Sricharan.C

Root user privilege doesn't mean you have an access to directory , please check the the permissions and post here again

#ls -ld directory 

Also you can use the

stat

command if you want detailed information on a file or a directory.

Hi h@foorsa,

By executing the ls -ld command i got the following information.

dr-xr-xr-x   1 root     root           1 Jun 27  2010    foldername/

---------- Post updated 11-08-11 at 03:02 AM ---------- Previous update was 11-07-11 at 11:19 PM ----------

Hi All,

Adding to my above query, even i am not able to change the permission of that particular directory aswell.

chmod 755 foldername

Awaiting Reply....

Are you sure this is not an NFS file system.
Please post the output come from df

#df -h  

And post output come from the following 2 commands

#chmod u+w foldername
#getfacl  foldername

If your system doesn't have the stat command install it and post the output here
This command comes with GNU coretuils are available at Sunfreeware - Free and Open Source Software (FOSS) for Sun Microsystem's Solaris under coreutils either

Hi,

Please find the details below.

  1. df -h // disk free //

Result:

Filesystem size used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
12G 4.3G 7.4G 37% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 16G 1.3M 16G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
12G 4.3G 7.4G 37% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
12G 4.3G 7.4G 37% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd

==================================================================

  1. chmod u+w foldername/
    Result: chmod: WARNING: can't change foldername/

==================================================================

  1. getfacl foldername
    Result:
    # file: foldername/
    # owner: root
    # group: root
    user::r-x
    group::r-x #effective:r-x
    mask:rwx
    other:r-x

// I think something I need to do with mask settings, correct me if i am wrong //

===================================================================

And comming to this command "stat", i think this command is not installed in my system as you said. How to check weather it has installed or not. But I am not the owner of this server to install. :frowning: So can you please guide me in any other way?

Result:

[root@abc.com]/#stat
bash: stat: command not found

Thanks in Advance
Sricharan

can you check the size of the directory using du

First of all use to post in Code Tags which makes your post neat and clear and aids forum members to view it clearly and encourage them to help you.
Secondly your problem is somewhat strange .
will you post the output from the following command.

#ls -li foldername
#ls -R foldername
#ls -lrh foldername
#du -sk foldername
#ls -li foldername/
foldername/: Permission denied
total 1
#ls -R foldername/
foldername/:
foldername/: Permission denied
#ls -lrh foldername/
foldername/: Permission denied
total 1
#du -sh foldername/
#

Please advice....

Root squash:

Unix security - Wikipedia, the free encyclopedia

Look more and more like an NFS problem. Have you tried restarting the NFS client service

From the first I suspected this is an NFS related issue.
@achenle thanks for your contribution.
@Sricharan21 I think achenle answers your issue

Hi achenle,

Thanks for your post, but am i permit to edit the root squash option? Because i dont see the /etc/exports directory itself. Please Advice

#cd /etc/exports
bash: cd: /etc/exports: No such file or directory

I'm guessing there's no /etc/exports because it's not a Linux server.

Read the man page for the share command:

man share

If the server is on a network you don't have full control of, it's not very safe to remove the root squash.

Hi achenle,

I want to share one more thing. Yes this is not linux this is unix (Sun Solaris) server.

Hi,

By going through the man page i find nothing apart from the shared things with this server and from this server.

I can see the folder which in not albe to acces was shared from one of the web server to 5 servers totally. But This is not happening as specified only in this server.

Reply awaiting.....

Can anyone help me out on above post... ?

What says

df -k directory

?

Hi Jlliagre,

Please find the output below.

[servername@123.com]/export/home/user1/$df -k /foldername
Filesystem            kbytes    used   avail capacity  Mounted on
/etc/auto_direct           0       0       0     0%    /export/home/user1/foldername

What says:

cat /etc/auto.master /etc/auto.direct

?

Hi Jlliagre,

Find the output of the executed commands below.

[servername@123.com]/etc$cat auto_master
#
# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)auto_master        1.8     03/04/28 SMI"
#
# Master map for automounter
#
+auto_master
/-      /etc/auto_direct
/nfs            -hosts          -nosuid,nobrowse
[servername@123.com]/etc$cat auto_direct
/web/web01/websites/foldername      web01:/local/web/websites/foldername
/web/web02/websites/foldername      web02:/local/web/websites/foldername
/nas/external_files    -rw     web01:/local/external_files