Solved

add file permissions to an exsiting folder

Posted on 2004-04-23
6
315 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
  • 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

822 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