Solved

add file permissions to an exsiting folder

Posted on 2004-04-23
6
308 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now