LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   File & directory permissions (https://www.linuxquestions.org/questions/debian-26/file-and-directory-permissions-201543/)

waynevnc 07-05-2004 09:14 PM

File & directory permissions
 
Can someone give me some help on permissions?

First, I'm on a Debian 3 system with a 2.4 kernel & a 80G drive with ext3 fs.

I am trying to set up a drive with a data directory which I would like for 3 users to be able rwx. I have the 3 users in a group called data. The directory has the following permissions drwxrwx--- with a owner of root and the group is data. When I try to browse the drive I keep getting "network access is denied". I can see directories under the root, but always get "network access is denied" when trying to access them.

I have tried several permission combinations and can only see the files within the directory if I give drwxrwxrwx.

Anyone have any suggestions?
Thanks
Wayne

Goala 07-06-2004 04:07 AM

Hi!

is the data directory mounted via nfs? (I ask it beacuse the "network access is denied" message)

are you sure the users are in the data group (cat /etc/group | grep data)


bye.

j-ray 07-06-2004 04:54 AM

man chmod

but i dont think it's a permission problem but a network prob.
the directory may be drwxrwxrwx - the files:
chmod 0770
should do

waynevnc 07-06-2004 08:56 AM

Goala,

Yes, I verified they are in the data group, using your suggestion. As for the nfs mount, isn't that needed for linux clients to connect. I'm trying to access the files from an XP OS. So I'm using Samba v2.2.3a-12.3. I guess I should have mentioned that earlier.

The exact error message I see is:

\\server\directory is not accessible. You may not have permission to use this network resource. Contact your admin of this server to find out if you have access permissions.

Access is denied.

Thanks
Wayne

waynevnc 07-06-2004 09:09 AM

j-ray,

I tried your suggestion and gave the main directory drwxrwxrwx and the data directory drwxrwx--- with the same results. I can now see other directories under the main but still don't have access to the data directory.

I remember reading something about the newgrp command. Does each user have a default group they belong to and they need to change groups dynamically to access different shares? Maybe thats my problem or not!

Thanks
Wayne

waynevnc 07-06-2004 02:29 PM

I believe I found the problem.

After trying everyone I knew & all the suggestions from this forum with no resolution I decided to start from the beginning. The files on this drive I had copied over from an NTFS drive and changed permissions on them. Well apparently somewhere in that was my problem.

I deleted everything on the drive and from my XP client I created a data directory & copied files from my local drive to that directory. I used chmod to change the permissions and chgrp to change the group to data and voila it works.

I should have known, and saved myself some time, it had something to do with NTFS.

Thanks for all the help
Wayne


All times are GMT -5. The time now is 03:00 AM.