LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-05-2004, 10:14 PM   #1
waynevnc
Member
 
Registered: Jun 2004
Location: Washington
Distribution: Debian 3.0
Posts: 58

Rep: Reputation: 15
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
 
Old 07-06-2004, 05:07 AM   #2
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
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.
 
Old 07-06-2004, 05:54 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,438

Rep: Reputation: 103Reputation: 103
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
 
Old 07-06-2004, 09:56 AM   #4
waynevnc
Member
 
Registered: Jun 2004
Location: Washington
Distribution: Debian 3.0
Posts: 58

Original Poster
Rep: Reputation: 15
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
 
Old 07-06-2004, 10:09 AM   #5
waynevnc
Member
 
Registered: Jun 2004
Location: Washington
Distribution: Debian 3.0
Posts: 58

Original Poster
Rep: Reputation: 15
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
 
Old 07-06-2004, 03:29 PM   #6
waynevnc
Member
 
Registered: Jun 2004
Location: Washington
Distribution: Debian 3.0
Posts: 58

Original Poster
Rep: Reputation: 15
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
 
  


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
File/Directory Permissions waynevnc Debian 1 05-23-2005 05:23 PM
Default directory and file permissions kodon Slackware 10 08-08-2004 09:27 AM
Permissions, File, Directory access tHcnunz Linux - Newbie 3 03-26-2004 10:25 AM
File and Directory permissions plasmapudding Red Hat 3 09-09-2003 11:26 AM
Directory and file permissions ryan Linux - Security 2 12-06-2000 01:46 PM


All times are GMT -5. The time now is 05:27 PM.

Main Menu
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