?
Solved

add file permissions to an exsiting folder

Posted on 2004-04-23
6
Medium Priority
?
331 Views
Last Modified: 2013-12-06
I want to add a user to this folder /netshare/ops/inventory   the user is already in the system. i am using samba as the share. how do i add them through the command line version?
0
Comment
Question by:nexcool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Expert Comment

by:jhayes92154
ID: 10904000
if you mean in linux then you would do a chmod on the folder, if you are talking about samba, then you would have to edit the share in samba in /etc/samba/smb.conf and add that user to the share.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10904454
Go to the config section about the share /netshare/ops/inventory in your smb.conf file. If you already allow access on a per user basis, you should have a "valid users" option in this section. Just add the new user to this list:

valid users user1,user2,user2,newuser

You can also add this user to a user group, and then enable access based on this group:

valid users @usergroup



0
 

Author Comment

by:nexcool
ID: 10908069
How do i edit the smb.conf file?
0
Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 2000 total points
ID: 10911546
You can use any of the ASCII editors that come with your Linux system. You will always have vi installed, but if you don't have any experience with vi, it's not really straight forward to use. If you use KDE, you could for example use kwrite, if you system has joe or pico, you could use these in a terminal window.
Regardless of which one you use, start it from a terminal window with the file name as parameter:
kwrite /etc/samba/smb.conf
vi /etc/samba/smb.conf
joe /etc/samba/smb.conf
...

Which Linux distribution are  you running?
0
 

Author Comment

by:nexcool
ID: 10914784
Red hat 9
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10916818
Unfortunately RH9 does not install any simple editor by default. You should however have gedit available. Try that.
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question