LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-22-2008, 02:57 PM   #1
Alex_trebek
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Rep: Reputation: 0
NAS shared folder permission problem


Hi everyone,

We recently installed a network attached storage device to host all our /home directories, including our shared directory. For some reason, the permissions didn't come out quite as expected. For example, I don't have access to any of the folders except my own, although that is point of the shared folder.

For example, I can't access /home/shared/mark, although the permissions are set to 777 (just for this purpose) and despite the fact that I'm in the same group as him. If I change the group to "root", then I can access his folder. Could it be that the name of the group is the same but the actual group number is different? What would be the adverse effect of me changing the group of all the folders to 'root'?

Sorry about the crude description, I hope you can make sense of it. Let me know what other information you may need.

Thanks!
 
Old 10-23-2008, 09:17 AM   #2
Yaniv-Fer
Member
 
Registered: Feb 2006
Distribution: Fedora,Solaris
Posts: 46

Rep: Reputation: 15
Hello Alex_trebek




what about creating a new "group" lets say team1

choose the members that should be in this new group...


and start from this point to give the correct permissions on folders...


if you start to work wrong... it will just get worst....
 
Old 10-23-2008, 05:55 PM   #3
Alex_trebek
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Hmm.... thanks for the tip. The weird issue is that all the users are already supposed to be part of the same group. Are there any commands that I can use to figure out what actual GID the folder belongs to and what GID my user account is? Maybe they get messed up between the NAS and the workstations?

And does anyone know if there is a security issue by simply changing all the folders to group 'root'?
 
Old 10-24-2008, 03:18 PM   #4
Yaniv-Fer
Member
 
Registered: Feb 2006
Distribution: Fedora,Solaris
Posts: 46

Rep: Reputation: 15
Hello Alex_trebek


Are there any commands that I can use to figure out what actual GID the folder belongs to

you can use
Code:
ls -n
Code:
[Yaniv@fc9-pc exports]$ ls -n
total 28
drwxrwsr-x  8 0 502 4096 2008-10-11 16:25 appz
drwxrwsr-x 15 0 502 4096 2008-10-24 19:38 downloads

for more options please use
Code:
man ls

what GID my user account is?

you can use
Code:
id
Code:
[Yaniv@fc9-pc exports]$ id
uid=500(Yaniv) gid=500(Yaniv) groups=500(Yaniv),502(smbusers)
[Yaniv@fc9-pc exports]$

also if you would like to see group members please check

Code:
[Yaniv@fc9-pc exports]$ cat /etc/group

good luck

Last edited by Yaniv-Fer; 10-24-2008 at 03:20 PM. Reason: more readable...
 
Old 10-24-2008, 04:29 PM   #5
Alex_trebek
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Yaniv-Fer,

Thanks for your help. My apologies about not knowing such basic commands, but I'm still very much a beginner.

Using these commands, I've noticed a couple of things.

1) Depending on which workstation I'm using, I get different output permissions.

Red Hat:
ls -n
drwxrwxrwx 2 824 600 4096 Oct 15 14:24 zoya/

Fedora:
ls -n
drwxrwxrwx+ 2 824 600 4096 2008-10-15 14:24 zoya

My understanding is this has something to do with ACLs? Is this the problem - i.e. the NAS uses ACL but the rest of the comps are not setup to use ACLs?!

2) The GID on the folders seem to be correct and I am part of this group, but still have no access to the folders.

uid=10003(byron) gid=600(ldapusers) groups=600(ldapusers),10001(domainusers)

3) The group, although I am part of it, is not listed under /etc/group

There is a group named ldap, but ldapusers (GID 600) is absent.

Any ideas or suggested readings would be great!
 
Old 10-24-2008, 06:23 PM   #6
Yaniv-Fer
Member
 
Registered: Feb 2006
Distribution: Fedora,Solaris
Posts: 46

Rep: Reputation: 15
My apologies about not knowing such basic commands, but I'm still very much a beginner.


we are here to learn...



in order to help you better...

please tell me more details about your network...

NAS server... the name and ip

clients... name and ip


about ACLs
you can use
Code:
getfacl
to see the ACLs on a folder...

anyway... if the server (NAS) is configured to use ACLs...

it will override client settings...

if you would like to disable ACLs you will have to edit
Code:
vi /etc/fstab

i would like to explain it a little more...

if you would like to use ACLs you would have only to enable and configure it on the NAS server...

the clients to NOT need any special configuration...


oh also... are you using NIS or something like that?

EDIT:

i just read you post again...
i am not familiar with ldap configurations...
i am asking myself now... are you using ldap?
or is it just a group called ldap?

Last edited by Yaniv-Fer; 10-24-2008 at 06:29 PM.
 
  


Reply


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
problem copying nfs folder of NAS jkeertir Linux - Hardware 0 03-25-2008 07:47 AM
Problem in samba(Folder Permission) RajendraKumar Linux - Software 1 07-30-2006 11:11 AM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 07:50 AM
Apply permission on samba shared folder on M$ Windows 2000 vwhk Linux - General 4 07-20-2003 10:53 PM
problem writing to a shared windows folder doddy Linux - General 2 09-05-2002 07:43 PM


All times are GMT -5. The time now is 02:38 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