Sponsored Content
Operating Systems Linux Permission denied issue on a Shared drive Post 302510625 by satishrao on Monday 4th of April 2011 01:02:46 PM
Old 04-04-2011
Hi,
The fstab on server2 has the below highlighted. So the /mnt/CEMP is mapped on fstab in Server2.
//Server1/share /mnt/CEMP cifs username=dbadmin,password=#### 0 0
Yes, when I am on Server1, I can access the file as dbadmin. I have restarted smb multiple times. The question is why am I not able to do so from Server2, as the same user?

THanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

./ Permission Denied.

Could someone tell me why I am getting a permission denied message when I attempt to run this on an out file? Thanks! (8 Replies)
Discussion started by: trouscaillon
8 Replies

2. UNIX for Dummies Questions & Answers

Map Drive From Windows To Apache Shared Drive?

Anyone know how I can map a windows drive to an apache shared drive? In my httpd.conf file, I have: Alias /merc_rpts/ "/u/merc_rpts/" <Directory "/u/merc_rpts"> Options Indexes </Directory> I'm able to bring up a browser and see the contents of this folder. In... (0 Replies)
Discussion started by: gseyforth
0 Replies

3. Shell Programming and Scripting

permission denied issue

hello I m trying to enter in a folder through my script but getting permission denied error .. Is there any command or somthing else so that i can access these folder through my script. (3 Replies)
Discussion started by: urfrnddpk
3 Replies

4. Shell Programming and Scripting

Permission denied

I created a user so that when he logs in he will be directed to a menu /etc/passwd user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies

5. Linux

Help with RT 4.0.4 Installation-Mason permission denied issue

Hi, I am trying to install RT 4.0.4 on Centos 6. I am almost done with the installation. However, when i try to start my web server (Apache - user: apache, group: apache) i get the following error: Starting httpd: : (in cleanup) Error while loading /opt/rt4/sbin/rt-server: Cannot create... (0 Replies)
Discussion started by: rtipx_user
0 Replies

6. AIX

Permission Denied issue on AIX 6.1 using Root

I have the following problem on my AIX 6.1 server. I logged in with Root ID to this folder etc/opt/symantec/scspagent/lib/instfunlib I try changing the folder permission but I keep getting this output : chmod: /opt/symantec/scspagent/lib/instfunlib: Permission Denied I did a listing on it... (3 Replies)
Discussion started by: mcdsweet98
3 Replies

7. Solaris

ISSUE : bash: cd: /rep/prok: Permission denied

Hi All, i have two accounts with acl permissions. I need to provide read access to both users. for one user s109552 "cd" is not working. drwxrws---+ 8 cvsadmin reto 1024 Aug 23 2011 reto su5sr117# su - s109553 $ bash bash-3.2$ cd /rep/reto bash-3.2$ pwd <-------- it... (2 Replies)
Discussion started by: Naveen.6025
2 Replies

8. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

9. UNIX for Dummies Questions & Answers

Permission denied

when i run echo "User” > /dev/tty5 why do i get permission denied? :confused: (2 Replies)
Discussion started by: chinababy
2 Replies

10. Ubuntu

Permission denied

Trying to get date into the txt file. It says Permission denied. echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt exec 2>> /tmp/systemd_suspend_test_err.txt if ; then # Do the thing you want before suspend here echo "we are suspending $(date +%I:%M:%S_%D)." elif ;... (5 Replies)
Discussion started by: drew77
5 Replies
GETMNTENT(3)						     Linux Programmer's Manual						      GETMNTENT(3)

NAME
getmntent, setmntent, addmntent, endmntent, hasmntopt - get file system descriptor file entry SYNOPSIS
#include <stdio.h> #include <mntent.h> FILE *setmntent(const char *filename, const char *type); struct mntent *getmntent(FILE *filep); int addmntent(FILE *filep, const struct mntent *mnt); int endmntent(FILE *filep); char *hasmntopt(const struct mntent *mnt, const char *opt); DESCRIPTION
These routines are used to access the file system description file /etc/fstab and the mounted file system description file /etc/mtab. The setmntent() function opens the file system description file filep and returns a file pointer which can be used by getmntent(). The argument type is the type of access required and can take the same values as the mode argument of fopen(3). The getmntent() function reads the next line from the file system description file filep and returns a pointer to a structure containing the broken out fields from a line in the file. The pointer points to a static area of memory which is overwritten by subsequent calls to getmntent(). The addmntent() function adds the mntent structure mnt to the end of the open file filep. The endmntent() function closes the file system description file filep. The hasmntopt() function scans the mnt_opts field (see below) of the mntent structure mnt for a substring that matches opt. See <mntent.h> for valid mount options. The mntent structure is defined in <mntent.h> as follows: struct mntent { char *mnt_fsname; /* name of mounted file system */ char *mnt_dir; /* file system path prefix */ char *mnt_type; /* mount type (see mntent.h) */ char *mnt_opts; /* mount options (see mntent.h) */ int mnt_freq; /* dump frequency in days */ int mnt_passno; /* pass number on parallel fsck */ }; RETURN VALUE
The getmntent() function returns a pointer to the mntent structure or NULL on failure. The addmntent() function returns 0 on success and 1 on failure. The endmntent() function always returns 1. The hasmntopt() function returns the address of the substring if a match is found and NULL otherwise. FILES
/etc/fstab file system description file /etc/mtab mounted file system description file CONFORMING TO
SunOS 4.1.3. NOTES
SysV also has a getmntent() function but the calling sequence differs, and the returned structure is different. Under SysV /etc/mnttab is used. BSD 4.4 and Digital Unix have a routine getmntinfo(), a wrapper around the system call getfsstat(). SEE ALSO
fopen(3), fstab(5) 1993-06-27 GETMNTENT(3)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy