LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-24-2012, 09:40 AM   #1
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Rep: Reputation: Disabled
Question linux permission works fine for one internal hard drive but not for the other?


Hi All,
I have 5 internal hard drives in my server and the smallest one has linux mint cinnamon installed.

i have 3 "2 TB" (named P, P-backup, R) and 1 "1 TB" hard drive (named U). the OS is in a 500GB hard drive.

my P drive works great. i told only user and group can have rwx and others read only. No issues here.

my R and U drives cannot be accessed at all from pc machines. when they try to map them it says access denied. i have no clue why. i made my linux and samba say read only for everyone then i tried rwx for everyone but still when they try to map it, the pc's say access denied you need permission.

p drive on the other hand works perfect. i even tried copy pasting the p drive lines in the smb.conf file and paste for the share for R drive (changing the path ofcourse) and still doesnt work.

im confused. please help. thanks
 
Old 07-24-2012, 01:06 PM   #2
Chirel
Member
 
Registered: Nov 2009
Posts: 55

Rep: Reputation: 19
Hi,

Could you elaborate please ?

On the server side what is the os & smb server ? how do you share what ? you could maybe paste config files.

On the client side what is the os ? how do you mount the share ? maybe you can paste the used command ?
 
Old 07-24-2012, 01:23 PM   #3
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
I use linux mint cinnamon and share using samba. pc's are of different os ranging from xp to vista to windows 7. im trying to make a folder called 'Library' located in R drive to be accessed by all.

i prefer to have read only for everyone except owner and group for the library folder.

"mounting the folder on pcs" i just map it using "map network drive".

Code:
[global]
	server string = %h server (Samba, Ubuntu)
	username map = /etc/samba/smbusers
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 2000
	dns proxy = No
;	idmap config * : backend = tdb
	workgroup = workgroup
	security = user
;	encrypt passwords = yes
;	guest ok = no
;	guest account = nobody

[printers]
	comment = All Printers
	path = /var/spool/samba
	create mask = 0700
	guest ok = Yes
	printable = Yes

[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
	guest ok = Yes

[Projects]
	path = /media/P-drive/Projects
	read only = No
	create mask = 0777
	directory mask = 0777
	inherit permissions = Yes
	inherit owner = Yes



[Library]
	path = /media/R-drive/Library
;	writeable = no
;	browseable = yes
	valid users = kevin, janice
 
Old 07-24-2012, 08:14 PM   #4
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,218

Rep: Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152
How are the drives formatted and how are they being mounted? Is it possible you're actually mounting the R and U drives in read-only mode?
 
Old 07-25-2012, 09:09 AM   #5
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
i mount the drives through disk utility. they are both ext4 formatted. how can i find out if its mounted in read only mode? i tried chmod couple of times 775 and 777 but no use. i tried chmod 777 and read and write in samba it still cannot be accessed by the pcs. the problem is i cant even access it through the pc, it says access denied.
 
Old 07-26-2012, 09:37 AM   #6
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
Any help would be much appreciated. Thanks!
 
Old 07-31-2012, 04:52 AM   #7
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,320

Rep: Reputation: 252Reputation: 252Reputation: 252
The output of mount will tell you whether itís mounted read only (will show up as ro).

Is the problem that they canít access it at all, or not writable?
 
Old 07-31-2012, 12:36 PM   #8
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
Reuti, thanks for your reply. They cannot access it at all. When they try to map it from their pcs a warning message comes up saying windows cannot access \\server\library. please check the spelling... your network.... all that stuff. so im not sure why its not able to see this drive at all. Also how do you check the output of mount? thanks.
 
Old 07-31-2012, 09:30 PM   #9
ilesterg
Member
 
Registered: Jul 2012
Location: Philippines
Distribution: CentOS, Oracle Linux, AIX
Posts: 354

Rep: Reputation: 46
Quote:
Originally Posted by gtrrockz84 View Post
Also how do you check the output of mount? thanks.
Your server is Mint Cinnamon, right? open up a terminal end enter
Code:
mount
 
  


Reply

Tags
samba, samba permissions


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
[SOLVED] transfer data from a SATA external hard drive to a IDE internal hard drive Cabtech Linux - Newbie 7 04-22-2012 03:55 PM
Copy an internal hard drive as backup? Restore an internal drive? Peufelon Linux - Hardware 2 06-15-2008 04:28 PM
Copying files from internal Hard drive to USB 2.0 Hard Drive is NOT Behaving tubatodd Ubuntu 4 02-19-2007 05:32 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Boot from hard drive stalls, rescue CD works fine jonr Mandriva 12 11-09-2004 07:54 PM


All times are GMT -5. The time now is 03:42 PM.

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