Solved

add file permissions to an exsiting folder

Posted on 2004-04-23
6
319 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

809 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