[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

add file permissions to an exsiting folder

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
nexcool
Asked:
nexcool
  • 3
  • 2
1 Solution
 
jhayes92154Commented:
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
 
Karl Heinz KremerCommented:
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
 
nexcoolAuthor Commented:
How do i edit the smb.conf file?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Karl Heinz KremerCommented:
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
 
nexcoolAuthor Commented:
Red hat 9
0
 
Karl Heinz KremerCommented:
Unfortunately RH9 does not install any simple editor by default. You should however have gedit available. Try that.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now