mongod instance on /data/db partition works fine. when created new directory /data/rs1 database , initialized mongod on using
mongod --logpath "1.log" --dbpath /data/rs1 --port 27017
it gives me following error:
storage [initandlisten] exception in initandlisten: 98 unable create/open lock file: /data/rs1/mongod.lock errno:13 permission denied mongod instance running?, terminating
however if try initiate same instance using 'sudo' , works fine. also, have tried changing permissions /data/rs1 current user using chown, doesn't work either. these current permissions of /data/rs1 folder
drwxr-xr-x 9 user123 wheel 306 apr 27 14:32 rs1
are there other permissions missing /data/rs1?
note: there no instance of mongod running when run above command