linux permission works fine for one internal hard drive but not for the other?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.