Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-05-2015, 02:46 PM   #1
LQ Newbie
Registered: Sep 2012
Posts: 10

Rep: Reputation: Disabled
Unable to properly access shares

I am attempting to restrict access for a folder tree on a fedora 16 system over the network.

I am partly successful.

I can properly access the share using windows. all permission enforced correctly and only the correct user can access the restricted folder. Linux machines can't access the folder even with correct log in.

Background... I have the shares with a specific user and the permission is 777 all over the shared drive. One folder is set to 770 with a different user and group specified.

Group A is for general users and access all but the restricted folder
Group B has access to all folders including the restricted.

windows can access either group a or b properly
Linux boxes are treated as group a regardless of sign in

I am using samba for shares.

Why can't I get in on Linux boxes but ok on windows?

Update: I can properly access going thru nautilus and browse network with correct login. Problem seems to be in the fstab. line is as follows

// /mnt/share cifs username=user,password=pass,dir_mode=0777,file_mode=0777 0 0

user and password are the correct for the group b access

Last edited by sadams54; 09-05-2015 at 03:21 PM.
Old 09-05-2015, 04:14 PM   #2
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,666

Rep: Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526
You are using an outdated and unsupported system, end of support February, 2013. You appear to have world read/write/execute permissions. I hope you don't have this connected to the internet?

You don't indicate but I expect the share is an ntfs filesystem. windows does't understand Linux permissions. It isn't really clear what access you want. Do you want a specific user to have access and not others? a specific group? Anyone have all access? The example fstab entry below allows only root and user 'bob' complete access to an ntfs partition. If you want something else, you will have to modify it or post back with more specifics. You would obviously have to replace '/dev/sdb13 with your IP and change the mount point.

/dev/sdb13 /mnt/win-test ntfs-3g defaults,auto,nouser,uid=bob,rw,umask=077 0 0
Old 09-05-2015, 04:28 PM   #3
LQ Newbie
Registered: Sep 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
No, it is not ntfs. It is a drive on a fedora 16 system and I am aware it is eol. I don't feel the need to fix it when it ain't broke.

I have figured the issue is in fstab as access is correct from browse network but not simply from the mount. Permission is controlled on the f16 box the 777 in fstab is on the local mount point.

I am trying to restrict one folder to 770 without having to browse network. I want it in the fstab so no user intervention is required. Restriction is to the group

sorry if I am not clear, the network is mixed windows but mostly Linux fedora 18,20,21 and the file server is a fedora 16 box. I have the permissions correct as it is enforced connecting from windows, but Linux is not getting the correct permissions. User2 is allowed full access and user1 is given access to most. Connect in the fstab using credentials for user2 but the rights seem to be user1

Last edited by sadams54; 09-07-2015 at 07:26 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to access my folder and view my files properly rupeshforu Linux - General 5 03-26-2013 07:15 AM
[Help] Unable to access Samba shares. artomason Linux - Server 2 07-24-2011 10:10 PM
Unable to access Windows shares or printer over network MrCode Linux - General 4 12-20-2009 07:07 PM
Unable to see shares on samba server - no authentication access desired (open access) neoelf Linux - Networking 1 06-14-2009 03:18 PM
Unable to access shares on FAT volumes jkhg Linux - Networking 2 02-07-2006 09:58 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration