3 replies
by zbrain75
There are two ways that you should be able to do it. I assume you're using samba services to connect to your linux computer, however essentially when you connect, you connect as a specific user. Therefore that user is in a specific group, which inRedhat is unique for each user (Usually their name). for instance the user "george" is set up in the group "george". What you can do is create a group called "database" and assign all users that need access to the database to the group "database". Be sure you set the permissions on the database file(s) to rw for owner, and r for the group and w if you want write ability.
The other option is to allow full access to the database file by all users making it rw for user, group and other.
Use the command "groupadd database" to create the group database. Then edit the /etc/password file and find the group database entry adding the user names to the entry in the following format.
database:x:502:root,name1,name2,name3
You can test to be sure it worked by entering the command "id name1".
To modify the file permissions use the chmod command. Read the man page or refer to the Linux users guide at: http:/ctdp.homestead.com/files/os/linux/usersguide/index.html.
Section 6 has examples on the use of chmod, and section 25 talks about managing users.
by sordito
by sordito
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending