LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08: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, 12: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, 12: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, 07:14 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 08: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, 08: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, 03:52 AM   #7
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
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, 11:36 AM   #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, 08:30 PM   #9
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:23 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
Open Source Consulting | Domain Registration