LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba insuffecent permissions issue (https://www.linuxquestions.org/questions/linux-newbie-8/samba-insuffecent-permissions-issue-934151/)

schrodingore 03-12-2012 10:25 PM

samba insuffecent permissions issue
 
I have setup a smb share but when I map it from my windows computer I get a "you do not have permissions to access" error I did a "chmod 777 /share" but I still get the issue (restart SMB's service also). From what I can tell SMB doesn't have any users/groups to give rights to.

I did a smbclinet -L gorecomp - U dhimes and put in a password
does this need to be diffrent from my login name?

Any ideas?

[bob]
comment = a share
path = /share
browseable = yes
guest ok = yes
writable = yes
public = yes

[root@gorecomp samba]# ll /

drwxrwxrwx. 2 dhimes dhimes 4096 Mar 7 01:43 share

deep27ak 03-13-2012 05:43 AM

add valid users for your samba share and assign them smb password


Code:

[bob]
comment = a share
path = /share
valid users = dhimes
browseable = yes
guest ok = yes
writable = yes
public = yes

Code:

#smbpasswd -a dhimes

schrodingore 03-13-2012 06:58 PM

no luck :-( still getting permission denied after the drive is mounted

I mount with (windows) gorecomp is the name of the linux box and the workgroup setup in the smb.conf file
Code:

C:\Users\dhimes>net use w: \\10.66.60.26\bob /user:gorecomp\dhimes
The password or user name is invalid for \\10.66.60.26\bob.

Enter the password for 'gorecomp\dhimes' to connect to '10.66.60.26':
The command completed successfully.

I also tried putting in the wrong password and it failed to mount

schrodingore 03-13-2012 07:41 PM

Found the issue
SElinux was killing it.

Turned it off and it's happy

not I just need to figure out how to permit it though so I can turn SElinux back on without breaking stuff


All times are GMT -5. The time now is 09:51 PM.